From 6ea6638ae6c5e5a047c011208495de42f586e22d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 4 Nov 2023 22:04:06 +0900 Subject: Replace Qt with TQt Signed-off-by: Michele Calgaro (cherry picked from commit 57545ab9c658d42570757aa95ddb5a0c23362804) --- src/libgui/watch_view.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libgui/watch_view.cpp') diff --git a/src/libgui/watch_view.cpp b/src/libgui/watch_view.cpp index 7fd5e8d..b76587a 100644 --- a/src/libgui/watch_view.cpp +++ b/src/libgui/watch_view.cpp @@ -66,7 +66,7 @@ void Register::RegisterListView::updateView() void Register::RegisterListView::itemClicked(int button, TQListViewItem *item, const TQPoint &, int) { - if ( item==0 || button!=Qt::LeftButton ) return; + if ( item==0 || button!=TQt::LeftButton ) return; if ( item==firstChild() ) Main::editorManager().openEditor(EditorManager::RegisterEditor); int id = _root->id(item); if ( id==-1 || _ids[id].type()==Invalid ) return; @@ -152,7 +152,7 @@ TQString Register::WatchedListView::tooltip(const TQListViewItem &item, int col) void Register::WatchedListView::itemClicked(int button, TQListViewItem *item, const TQPoint &, int col) { - if ( item==0 || button!=Qt::LeftButton ) return; + if ( item==0 || button!=TQt::LeftButton ) return; else if ( item->rtti()==RegisterRtti ) { if ( col==2 && Main::programmerState()==Programmer::Halted ) static_cast(item)->startRename(); else item->setOpen(!item->isOpen()); @@ -202,7 +202,7 @@ Register::WatchView::WatchView(TQWidget *parent) TQVBoxLayout *top = new TQVBoxLayout(this); TQValueList sizes; sizes.append(50); - Splitter *splitter = new Splitter(sizes, Qt::Vertical, this, "watch_window_splitter"); + Splitter *splitter = new Splitter(sizes, TQt::Vertical, this, "watch_window_splitter"); top->addWidget(splitter); _registerListView = new RegisterListView(splitter); -- cgit v1.2.1