diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-06 11:39:06 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-07 11:02:18 +0900 |
commit | 4243c1195d662a4e6e0971cef547520ece2c6673 (patch) | |
tree | c2ad6162439ea0d563c5a094be51a756340b33ab /libtdegames | |
parent | 05581ab8401a949370656e30b27918af89675edc (diff) | |
download | tdegames-4243c1195d662a4e6e0971cef547520ece2c6673.tar.gz tdegames-4243c1195d662a4e6e0971cef547520ece2c6673.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'libtdegames')
-rw-r--r-- | libtdegames/highscore/kscoredialog.cpp | 2 | ||||
-rw-r--r-- | libtdegames/kcarddialog.cpp | 8 | ||||
-rw-r--r-- | libtdegames/kgameprogress.cpp | 18 | ||||
-rw-r--r-- | libtdegames/kgameprogress.h | 2 |
4 files changed, 15 insertions, 15 deletions
diff --git a/libtdegames/highscore/kscoredialog.cpp b/libtdegames/highscore/kscoredialog.cpp index 518d0084..56780612 100644 --- a/libtdegames/highscore/kscoredialog.cpp +++ b/libtdegames/highscore/kscoredialog.cpp @@ -154,7 +154,7 @@ void KScoreDialog::setupDialog() } } - KSeparator *sep = new KSeparator(Qt::Horizontal, d->page); + KSeparator *sep = new KSeparator(TQt::Horizontal, d->page); d->layout->addMultiCellWidget(sep, 4, 4, 0, d->nrCols-1); d->labels.resize(d->nrCols * 10); diff --git a/libtdegames/kcarddialog.cpp b/libtdegames/kcarddialog.cpp index be1c7fef..39afd3e1 100644 --- a/libtdegames/kcarddialog.cpp +++ b/libtdegames/kcarddialog.cpp @@ -274,7 +274,7 @@ void KCardDialog::setupDialog(bool showResizeBox) TQHBoxLayout* layout = new TQHBoxLayout(cardLayout); // Deck iconview - TQGroupBox* grp1 = new TQGroupBox(1,Qt::Horizontal, i18n("Choose Backside"), plainPage()); + TQGroupBox* grp1 = new TQGroupBox(1,TQt::Horizontal, i18n("Choose Backside"), plainPage()); layout->addWidget(grp1); d->deckIconView = new TDEIconView(grp1,"decks"); @@ -326,7 +326,7 @@ void KCardDialog::setupDialog(bool showResizeBox) { // Cards iconview TQHBoxLayout* layout = new TQHBoxLayout(cardLayout); - TQGroupBox* grp2 = new TQGroupBox(1,Qt::Horizontal, i18n("Choose Frontside"), plainPage()); + TQGroupBox* grp2 = new TQGroupBox(1,TQt::Horizontal, i18n("Choose Frontside"), plainPage()); layout->addWidget(grp2); d->cardIconView =new TDEIconView(grp2,"cards"); @@ -423,7 +423,7 @@ void KCardDialog::setupDialog(bool showResizeBox) // larger but i want the complete pixmap to be displayed. the dialog is not // resized if you make the pixmap smaller again. TQVBoxLayout* layout = new TQVBoxLayout(topLayout); - TQGroupBox* grp = new TQGroupBox(1,Qt::Horizontal, i18n("Resize Cards"), plainPage()); + TQGroupBox* grp = new TQGroupBox(1,TQt::Horizontal, i18n("Resize Cards"), plainPage()); layout->setResizeMode(TQLayout::Fixed); layout->addWidget(grp); TQWidget* box = new TQWidget(grp); @@ -431,7 +431,7 @@ void KCardDialog::setupDialog(bool showResizeBox) TQVBoxLayout* boxLayout = new TQVBoxLayout(hbox); hbox->addStretch(0); - d->scaleSlider = new TQSlider(1, SLIDER_MAX, 1, (-1000+SLIDER_MIN+SLIDER_MAX),Qt::Horizontal, box); + d->scaleSlider = new TQSlider(1, SLIDER_MAX, 1, (-1000+SLIDER_MIN+SLIDER_MAX),TQt::Horizontal, box); d->scaleSlider->setMinValue(SLIDER_MIN); connect(d->scaleSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotCardResized(int))); boxLayout->addWidget(d->scaleSlider, 0, AlignLeft); diff --git a/libtdegames/kgameprogress.cpp b/libtdegames/kgameprogress.cpp index 7327a70f..90ef73be 100644 --- a/libtdegames/kgameprogress.cpp +++ b/libtdegames/kgameprogress.cpp @@ -32,12 +32,12 @@ KGameProgress::KGameProgress(TQWidget *parent, const char *name) : TQFrame(parent, name), TQRangeControl(0, 100, 1, 10, 0), - orient(Qt::Horizontal) + orient(TQt::Horizontal) { initialize(); } -KGameProgress::KGameProgress(Qt::Orientation orientation, TQWidget *parent, const char *name) +KGameProgress::KGameProgress(TQt::Orientation orientation, TQWidget *parent, const char *name) : TQFrame(parent, name), TQRangeControl(0, 100, 1, 10, 0), orient(orientation) @@ -46,7 +46,7 @@ KGameProgress::KGameProgress(Qt::Orientation orientation, TQWidget *parent, cons } KGameProgress::KGameProgress(int minValue, int maxValue, int value, - Qt::Orientation orientation, TQWidget *parent, const char *name) + TQt::Orientation orientation, TQWidget *parent, const char *name) : TQFrame(parent, name), TQRangeControl(minValue, maxValue, 1, 10, value), orient(orientation) @@ -118,7 +118,7 @@ void KGameProgress::setBarStyle(BarStyle style) } } -void KGameProgress::setOrientation(Qt::Orientation orientation) +void KGameProgress::setOrientation(TQt::Orientation orientation) { if (orient != orientation) { orient = orientation; @@ -155,7 +155,7 @@ TQSize KGameProgress::sizeHint() const { TQSize s( size() ); - if(orientation() == Qt::Vertical) { + if(orientation() == TQt::Vertical) { s.setWidth(24); } else { s.setHeight(24); @@ -171,7 +171,7 @@ TQSize KGameProgress::minimumSizeHint() const TQSizePolicy KGameProgress::sizePolicy() const { - if ( orientation()==Qt::Vertical ) + if ( orientation()==TQt::Vertical ) return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Expanding ); else return TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ); @@ -271,7 +271,7 @@ void KGameProgress::drawContents(TQPainter *p) switch (bar_style) { case Solid: - if (orient ==Qt::Horizontal) { + if (orient ==TQt::Horizontal) { fr.setWidth(recalcValue(cr.width())); er.setLeft(fr.right() + 1); } else { @@ -289,7 +289,7 @@ void KGameProgress::drawContents(TQPainter *p) case Blocked: const int margin = 2; int max, num, dx, dy; - if (orient ==Qt::Horizontal) { + if (orient ==TQt::Horizontal) { fr.setHeight(cr.height() - 2 * margin); fr.setWidth((int)(0.67 * fr.height())); fr.moveTopLeft(TQPoint(cr.left() + margin, cr.top() + margin)); @@ -315,7 +315,7 @@ void KGameProgress::drawContents(TQPainter *p) } if (num != max) { - if (orient ==Qt::Horizontal) + if (orient ==TQt::Horizontal) er.setLeft(fr.right() + 1); else er.setBottom(fr.bottom() + 1); diff --git a/libtdegames/kgameprogress.h b/libtdegames/kgameprogress.h index 096e2cde..13e0f66a 100644 --- a/libtdegames/kgameprogress.h +++ b/libtdegames/kgameprogress.h @@ -109,7 +109,7 @@ public: /** * Set the orientation of the progress bar. * - * Allowed values are @p Qt::Horizontal and @p Qt::Vertical. + * Allowed values are @p TQt::Horizontal and @p TQt::Vertical. */ void setOrientation(Orientation); |