From 1a7a57976491e8df569198d8e903bf9e57e233f0 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 8 Nov 2023 11:05:10 +0900 Subject: Replace Qt with TQt Signed-off-by: Michele Calgaro --- tdecachegrind/tdecachegrind/multiview.cpp | 6 +++--- tdecachegrind/tdecachegrind/tabview.cpp | 10 +++++----- tdecachegrind/tdecachegrind/tabview.h | 2 +- tdecachegrind/tdecachegrind/toplevel.cpp | 6 +++--- tdecachegrind/tdecachegrind/toplevel.h | 2 +- tdecachegrind/tdecachegrind/treemap.cpp | 4 ++-- tdecachegrind/tdecachegrind/treemap.h | 8 ++++---- 7 files changed, 19 insertions(+), 19 deletions(-) (limited to 'tdecachegrind') diff --git a/tdecachegrind/tdecachegrind/multiview.cpp b/tdecachegrind/tdecachegrind/multiview.cpp index 628eefab..349db8d6 100644 --- a/tdecachegrind/tdecachegrind/multiview.cpp +++ b/tdecachegrind/tdecachegrind/multiview.cpp @@ -38,7 +38,7 @@ MultiView::MultiView(TopLevel* top, TQWidget* parent, const char* name) : TQSplitter(parent, name), TraceItemView(0, top) { // default - setOrientation(Qt::Horizontal); + setOrientation(TQt::Horizontal); appendView(); _active = _views.first(); @@ -177,7 +177,7 @@ void MultiView::readViewConfig(TDEConfig* c, int n = g->readNumEntry("Panels", 1); setChildCount(n); setOrientation( (g->readEntry("Orientation") == TQString("Horizontal")) ? - Qt::Horizontal : Qt::Vertical ); + TQt::Horizontal : TQt::Vertical ); setSizes(g->readIntListEntry("PanelSizes")); @@ -208,7 +208,7 @@ void MultiView::saveViewConfig(TDEConfig* c, g.writeEntry("Panels", childCount()); g.writeEntry("Orientation", - (orientation() == Qt::Horizontal) ? + (orientation() == TQt::Horizontal) ? "Horizontal" : "Vertical"); g.writeEntry("PanelSizes", sizes()); diff --git a/tdecachegrind/tdecachegrind/tabview.cpp b/tdecachegrind/tdecachegrind/tabview.cpp index 2805c51f..b8cd09f5 100644 --- a/tdecachegrind/tdecachegrind/tabview.cpp +++ b/tdecachegrind/tdecachegrind/tabview.cpp @@ -52,7 +52,7 @@ TabBar::TabBar(TabView* v, TQTabWidget* parent, const char *name) void TabBar::mousePressEvent(TQMouseEvent *e) { - if (e->button() == Qt::RightButton) { + if (e->button() == TQt::RightButton) { TQTab *tab = selectTab( e->pos() ); TQWidget* page; page = tab ? _tabWidget->page( indexOf( tab->identifier() ) ) :0; @@ -114,7 +114,7 @@ void TabBar::mousePressEvent(TQMouseEvent *e) // Splitter // -Splitter::Splitter(Qt::Orientation o, TQWidget* parent, const char* name) +Splitter::Splitter(TQt::Orientation o, TQWidget* parent, const char* name) : TQSplitter(o, parent, name) {} @@ -242,8 +242,8 @@ TabView::TabView(TraceItemView* parentView, _nameLabel->setText(i18n("(No profile data file loaded)")); vbox->addWidget( _nameLabel ); - _mainSplitter = new TQSplitter(Qt::Horizontal, this); - _leftSplitter = new Splitter(Qt::Vertical, _mainSplitter, "Left"); + _mainSplitter = new TQSplitter(TQt::Horizontal, this); + _leftSplitter = new Splitter(TQt::Vertical, _mainSplitter, "Left"); vbox->addWidget( _mainSplitter ); _rightTW = new TabWidget(this, _mainSplitter, "Right"); @@ -258,7 +258,7 @@ TabView::TabView(TraceItemView* parentView, connect(_topTW, TQT_SIGNAL(visibleRectChanged(TabWidget*)), this, TQT_SLOT(visibleRectChangedSlot(TabWidget*))); - _bottomSplitter = new Splitter(Qt::Horizontal, + _bottomSplitter = new Splitter(TQt::Horizontal, _leftSplitter, "Bottom"); _leftTW = new TabWidget(this, _bottomSplitter, "Left"); diff --git a/tdecachegrind/tdecachegrind/tabview.h b/tdecachegrind/tdecachegrind/tabview.h index 9369928f..fe7ae424 100644 --- a/tdecachegrind/tdecachegrind/tabview.h +++ b/tdecachegrind/tdecachegrind/tabview.h @@ -65,7 +65,7 @@ class Splitter: public TQSplitter public: - Splitter(Qt::Orientation o, TQWidget* parent = 0, const char* name = 0); + Splitter(TQt::Orientation o, TQWidget* parent = 0, const char* name = 0); void checkVisiblity(); protected: diff --git a/tdecachegrind/tdecachegrind/toplevel.cpp b/tdecachegrind/tdecachegrind/toplevel.cpp index 82bdb8c3..b9675a0e 100644 --- a/tdecachegrind/tdecachegrind/toplevel.cpp +++ b/tdecachegrind/tdecachegrind/toplevel.cpp @@ -266,7 +266,7 @@ void TopLevel::restoreCurrentState(TQString postfix) _multiView->readViewConfig(tdeconfig, TQString("MainView"), postfix, true); _taSplit->setChecked(_multiView->childCount()>1); _taSplitDir->setEnabled(_multiView->childCount()>1); - _taSplitDir->setChecked(_multiView->orientation() == Qt::Horizontal); + _taSplitDir->setChecked(_multiView->orientation() == TQt::Horizontal); } @@ -2031,13 +2031,13 @@ void TopLevel::splitSlot() _taSplit->setChecked(count>1); _taSplitDir->setEnabled(count>1); - _taSplitDir->setChecked(_multiView->orientation() == Qt::Horizontal); + _taSplitDir->setChecked(_multiView->orientation() == TQt::Horizontal); } void TopLevel::splitDirSlot() { _multiView->setOrientation( _taSplitDir->isChecked() ? - Qt::Horizontal : Qt::Vertical ); + TQt::Horizontal : TQt::Vertical ); } diff --git a/tdecachegrind/tdecachegrind/toplevel.h b/tdecachegrind/tdecachegrind/toplevel.h index 9df242be..0a31d0b7 100644 --- a/tdecachegrind/tdecachegrind/toplevel.h +++ b/tdecachegrind/tdecachegrind/toplevel.h @@ -216,7 +216,7 @@ private: TQLabel* _statusLabel; TDERecentFilesAction* _openRecent; bool _twoMainWidgets; - Qt::Orientation _spOrientation; + TQt::Orientation _spOrientation; MultiView* _multiView; FunctionSelection* _functionSelection; diff --git a/tdecachegrind/tdecachegrind/treemap.cpp b/tdecachegrind/tdecachegrind/treemap.cpp index d77fb1e9..f70f4a4f 100644 --- a/tdecachegrind/tdecachegrind/treemap.cpp +++ b/tdecachegrind/tdecachegrind/treemap.cpp @@ -1852,7 +1852,7 @@ void TreeMapWidget::mousePressEvent( TQMouseEvent* e ) } // item under mouse always selected on right button press - if (e->button() == Qt::RightButton) { + if (e->button() == TQt::RightButton) { TreeMapItem* changed2 = setTmpSelected(item, true); if (changed2) changed = changed2->commonParent(changed); } @@ -1862,7 +1862,7 @@ void TreeMapWidget::mousePressEvent( TQMouseEvent* e ) if (changed) redraw(changed); - if (e->button() == Qt::RightButton) { + if (e->button() == TQt::RightButton) { // emit selection change if (! (_tmpSelection == _selection)) { diff --git a/tdecachegrind/tdecachegrind/treemap.h b/tdecachegrind/tdecachegrind/treemap.h index dfe73cda..c0bd6d5d 100644 --- a/tdecachegrind/tdecachegrind/treemap.h +++ b/tdecachegrind/tdecachegrind/treemap.h @@ -234,10 +234,10 @@ public: * longest side of rectangle left for drawing * Best: Choose split direction for all subitems of an area * depending on longest side - * HAlternate:Qt::Horizontal at top; alternate direction on depth step - * VAlternate:Qt::Vertical at top; alternate direction on depth step - * Qt::Horizontal: Always horizontal split direction - * Qt::Vertical: Always vertical split direction + * HAlternate: Horizontal at top; alternate direction on depth step + * VAlternate: Vertical at top; alternate direction on depth step + * Horizontal: Always horizontal split direction + * Vertical: Always vertical split direction */ enum SplitMode { Bisection, Columns, Rows, AlwaysBest, Best, -- cgit v1.2.1