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:03:40 +0900 |
commit | afc67225900e0375f32048f4df27f32986704a67 (patch) | |
tree | 1fe1cadfa3aef633b34a3a773d111c55f07213d0 | |
parent | 0195c436ad939e6c1cde8953a9bff70ccca701e5 (diff) | |
download | tdegames-afc67225900e0375f32048f4df27f32986704a67.tar.gz tdegames-afc67225900e0375f32048f4df27f32986704a67.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 4243c1195d662a4e6e0971cef547520ece2c6673)
44 files changed, 98 insertions, 98 deletions
diff --git a/atlantik/client/configdlg.cpp b/atlantik/client/configdlg.cpp index e24244c5..e30e4ca1 100644 --- a/atlantik/client/configdlg.cpp +++ b/atlantik/client/configdlg.cpp @@ -258,7 +258,7 @@ ConfigBoard::ConfigBoard(ConfigDialog *configDialog, TQWidget *parent, const cha m_configDialog = configDialog; TQVBoxLayout *layout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint()); - TQGroupBox *box = new TQGroupBox(1, Qt::Horizontal, i18n("Game Status Feedback"), parent); + TQGroupBox *box = new TQGroupBox(1, TQt::Horizontal, i18n("Game Status Feedback"), parent); layout->addWidget(box); m_indicateUnowned = new TQCheckBox(i18n("Display title deed card on unowned properties"), box); @@ -291,7 +291,7 @@ ConfigBoard::ConfigBoard(ConfigDialog *configDialog, TQWidget *parent, const cha "will have a Quartz effect similar to the Quartz KWin style.\n"); TQWhatsThis::add(m_quartzEffects, message); -// box = new TQGroupBox(1, Qt::Horizontal, i18n("Size"), parent); +// box = new TQGroupBox(1, TQt::Horizontal, i18n("Size"), parent); // layout->addWidget(box); layout->addStretch(1); diff --git a/atlantik/libatlantikui/estateview.cpp b/atlantik/libatlantikui/estateview.cpp index fe53d63e..47f96572 100644 --- a/atlantik/libatlantikui/estateview.cpp +++ b/atlantik/libatlantikui/estateview.cpp @@ -432,7 +432,7 @@ void EstateView::resizeEvent(TQResizeEvent *) void EstateView::mousePressEvent(TQMouseEvent *e) { - if (e->button()==Qt::RightButton && m_estate->isOwned()) + if (e->button()==TQt::RightButton && m_estate->isOwned()) { TDEPopupMenu *rmbMenu = new TDEPopupMenu(this); rmbMenu->insertTitle(m_estate->name()); @@ -488,7 +488,7 @@ void EstateView::mousePressEvent(TQMouseEvent *e) rmbMenu->exec(g); delete rmbMenu; } - else if (e->button()==Qt::LeftButton) + else if (e->button()==TQt::LeftButton) emit LMBClicked(m_estate); } diff --git a/atlantik/libatlantikui/portfolioestate.cpp b/atlantik/libatlantikui/portfolioestate.cpp index 1117b6e8..1c165244 100644 --- a/atlantik/libatlantikui/portfolioestate.cpp +++ b/atlantik/libatlantikui/portfolioestate.cpp @@ -89,6 +89,6 @@ void PortfolioEstate::paintEvent(TQPaintEvent *) void PortfolioEstate::mousePressEvent(TQMouseEvent *e) { - if (e->button()==Qt::LeftButton) + if (e->button()==TQt::LeftButton) emit estateClicked(m_estate); } diff --git a/atlantik/libatlantikui/portfolioview.cpp b/atlantik/libatlantikui/portfolioview.cpp index 19424e3b..cec443e7 100644 --- a/atlantik/libatlantikui/portfolioview.cpp +++ b/atlantik/libatlantikui/portfolioview.cpp @@ -252,7 +252,7 @@ void PortfolioView::mousePressEvent(TQMouseEvent *e) { Player *playerSelf = m_atlanticCore->playerSelf(); - if ( e->button()==Qt::RightButton && (m_player != playerSelf) ) + if ( e->button()==TQt::RightButton && (m_player != playerSelf) ) { TDEPopupMenu *rmbMenu = new TDEPopupMenu(this); rmbMenu->insertTitle(m_player->name()); diff --git a/katomic/configbox.cpp b/katomic/configbox.cpp index c8a9fcd5..5bfcad9c 100644 --- a/katomic/configbox.cpp +++ b/katomic/configbox.cpp @@ -33,7 +33,7 @@ ConfigBox::ConfigBox ( TQWidget *parent, const char *name) glay->addWidget(disp, 1, 2); disp->display(1); - speed = new TQSlider(1, 10, 1, 1, Qt::Horizontal, page); + speed = new TQSlider(1, 10, 1, 1, TQt::Horizontal, page); glay->addMultiCellWidget(speed, 2, 2, 2, 3); connect(speed, TQT_SIGNAL(valueChanged(int)), disp, TQT_SLOT(display(int))); diff --git a/katomic/gamewidget.cpp b/katomic/gamewidget.cpp index 9d0ddf1a..1c0b018f 100644 --- a/katomic/gamewidget.cpp +++ b/katomic/gamewidget.cpp @@ -188,7 +188,7 @@ GameWidget::GameWidget ( TQWidget *parent, const char* name ) // scrollbar scrl = new TQScrollBar(1, nlevels, 1, - 5, 1, Qt::Horizontal, vb, "scrl" ); + 5, 1, TQt::Horizontal, vb, "scrl" ); connect (scrl, TQT_SIGNAL (valueChanged (int)), TQT_SLOT (updateLevel (int))); // molek�l diff --git a/kbackgammon/kbg.cpp b/kbackgammon/kbg.cpp index 696d9b7f..dcb82e72 100644 --- a/kbackgammon/kbg.cpp +++ b/kbackgammon/kbg.cpp @@ -88,7 +88,7 @@ KBg::KBg() /* * The main view is shared between the board and a small text window */ - panner = new TQSplitter(Qt::Vertical, this, "panner"); + panner = new TQSplitter(TQt::Vertical, this, "panner"); board = new KBgBoardSetup(panner, "board"); status = new KBgTextView(panner, "status"); setCentralWidget(panner); diff --git a/kbackgammon/kbgboard.cpp b/kbackgammon/kbgboard.cpp index e6f34677..63d58281 100644 --- a/kbackgammon/kbgboard.cpp +++ b/kbackgammon/kbgboard.cpp @@ -1102,7 +1102,7 @@ void KBgBoardHome::drawDiceFrame(TQPainter *p, int col, int num, */ void KBgBoardCell::mousePressEvent(TQMouseEvent *e) { - if (e->button() == Qt::RightButton) + if (e->button() == TQt::RightButton) board->showContextMenu(); else mouseButton = e->button(); @@ -1141,7 +1141,7 @@ int KBgBoard::getShortMoveMode() */ void KBgBoardCell::checkAndMakeShortMove(TQMouseEvent *e, int m) { - if ((e->button() == Qt::LeftButton) && + if ((e->button() == TQt::LeftButton) && (board->getShortMoveMode() == m) && (dragPossible()) && (!board->getEditMode())) @@ -1317,7 +1317,7 @@ int KBgBoard::getPipCount(const int& w) const */ void KBgBoardHome::mouseDoubleClickEvent(TQMouseEvent * e) { - if (e->button() != Qt::LeftButton) + if (e->button() != TQt::LeftButton) return; /* * Check whether this is the bookkeeping home... @@ -1745,7 +1745,7 @@ KBgBoardCell::KBgBoardCell(TQWidget * parent, int numID) stateChanged = false; colorChanged = false; directionChanged = false; - mouseButton = Qt::NoButton; + mouseButton = TQt::NoButton; dragInProgress = false; connect(parent, TQT_SIGNAL(finishedUpdate()), this, TQT_SLOT(refresh())); @@ -2150,7 +2150,7 @@ void KBgBoard::setState(const KBgStatus &st) */ void KBgBoardCell::mouseMoveEvent(TQMouseEvent *) { - if ((mouseButton == Qt::LeftButton) && dragPossible()) { + if ((mouseButton == TQt::LeftButton) && dragPossible()) { dragInProgress = true; TQRect cr(0, 0, 1+getCheckerDiameter(), 1+getCheckerDiameter()); cr.moveBottomLeft(rect().bottomLeft()); @@ -2169,7 +2169,7 @@ void KBgBoardCell::mouseMoveEvent(TQMouseEvent *) board->storeTurn(pcs); getPiece(); } - mouseButton = Qt::NoButton; + mouseButton = TQt::NoButton; } /* diff --git a/kbattleship/kbattleship/kbattleshipview.cpp b/kbattleship/kbattleship/kbattleshipview.cpp index 42b699bb..9d77653b 100644 --- a/kbattleship/kbattleship/kbattleshipview.cpp +++ b/kbattleship/kbattleship/kbattleshipview.cpp @@ -172,13 +172,13 @@ bool KBattleshipView::eventFilter(TQObject *object, TQEvent *event) TQMouseEvent *mouseEvent = TQT_TQMOUSEEVENT(event); - if(mouseEvent->button() == Qt::RightButton){ + if(mouseEvent->button() == TQt::RightButton){ emit sigMouseOverField(m_lastX, m_lastY); emit changeShipPlacementDirection(); return true; } - if(mouseEvent->button() != Qt::LeftButton) + if(mouseEvent->button() != TQt::LeftButton) return false; TQPoint point(mouseEvent->x(), mouseEvent->y()); diff --git a/kbattleship/kbattleship/kshiplist.cpp b/kbattleship/kbattleship/kshiplist.cpp index e490fd0a..538b57e3 100644 --- a/kbattleship/kbattleship/kshiplist.cpp +++ b/kbattleship/kbattleship/kshiplist.cpp @@ -118,7 +118,7 @@ bool KShipList::canAddShips() void KShipList::addNewShip(int button, int fieldx, int fieldy) { - if(!addNewShip(!(button == Qt::LeftButton), fieldx, fieldy)) + if(!addNewShip(!(button == TQt::LeftButton), fieldx, fieldy)) KMessageBox::information(0L, i18n("You cannot place the ship here.")); } diff --git a/kblackbox/kbbgame.cpp b/kblackbox/kbbgame.cpp index 01fc7bc4..2920f02e 100644 --- a/kblackbox/kbbgame.cpp +++ b/kblackbox/kbbgame.cpp @@ -622,7 +622,7 @@ void KBBGame::gotInputAt( int col, int row, int state ) int w = gameBoard->width() - 2; int h = gameBoard->height() - 2; - if (state & Qt::LeftButton) { + if (state & TQt::LeftButton) { switch (type) { case WBALLBBG: // because of the tutorial mode case INNERBBG: @@ -681,7 +681,7 @@ void KBBGame::gotInputAt( int col, int row, int state ) } break; } - } else if (state & Qt::RightButton) { + } else if (state & TQt::RightButton) { switch (type) { case INNERBBG: r->set( col, row, MARK1BBG ); diff --git a/kblackbox/kbbgfx.cpp b/kblackbox/kbbgfx.cpp index c3af718e..3aff0369 100644 --- a/kblackbox/kbbgfx.cpp +++ b/kblackbox/kbbgfx.cpp @@ -342,7 +342,7 @@ void KBBGraphic::mousePressEvent( TQMouseEvent* e ) /* * Middle click finishes the game. */ - if (e->button() == Qt::MidButton) { + if (e->button() == TQt::MidButton) { emit endMouseClicked(); return; } @@ -413,7 +413,7 @@ void KBBGraphic::slotInput() if ( !inputAccepted ) { return; } - emit inputAt( curCol, curRow, Qt::LeftButton ); + emit inputAt( curCol, curRow, TQt::LeftButton ); // updateElement( curCol, curRow ); } diff --git a/kbounce/game.cpp b/kbounce/game.cpp index 4b60df2e..4b2f14b3 100644 --- a/kbounce/game.cpp +++ b/kbounce/game.cpp @@ -326,13 +326,13 @@ JezzView::JezzView(TQCanvas* viewing, TQWidget* parent, const char* name, WFlags void JezzView::viewportMouseReleaseEvent( TQMouseEvent *ev ) { - if ( ev->button() & Qt::RightButton ) + if ( ev->button() & TQt::RightButton ) { m_vertical = !m_vertical; if ( m_vertical ) setCursor( sizeVerCursor ); else setCursor( sizeHorCursor ); } - if ( ev->button() & Qt::LeftButton ) + if ( ev->button() & TQt::LeftButton ) { emit buildWall( ev->x()/TILE_SIZE, ev->y()/TILE_SIZE, m_vertical ); } diff --git a/kenolaba/BoardWidget.cpp b/kenolaba/BoardWidget.cpp index 456bb75c..d4178fe6 100644 --- a/kenolaba/BoardWidget.cpp +++ b/kenolaba/BoardWidget.cpp @@ -834,7 +834,7 @@ void BoardWidget::mousePressEvent( TQMouseEvent* pEvent ) int pos = positionOf( pEvent->x(), pEvent->y() ); int f = fieldOf(pos); - if (pEvent->button() == Qt::RightButton) { + if (pEvent->button() == TQt::RightButton) { emit rightButtonPressed(f, pEvent->globalPos()); return; } @@ -846,9 +846,9 @@ void BoardWidget::mousePressEvent( TQMouseEvent* pEvent ) if (editMode) { - editColor = (pEvent->button() == Qt::MidButton) ? + editColor = (pEvent->button() == TQt::MidButton) ? Board::color2 : Board::color1; - int newColor = (pEvent->button() == Qt::MidButton) ? + int newColor = (pEvent->button() == TQt::MidButton) ? Board::color2bright : Board::color1bright; if (field[f] == Board::free) { @@ -877,7 +877,7 @@ void BoardWidget::mousePressEvent( TQMouseEvent* pEvent ) return; } - startValid = isValidStart(pos, (pEvent->button() == Qt::MidButton)); + startValid = isValidStart(pos, (pEvent->button() == TQt::MidButton)); kdDebug(12011) << "Start pos " << pos << " is valid: " << startValid << endl; // actMove.print(); @@ -918,7 +918,7 @@ void BoardWidget::mouseMoveEvent( TQMouseEvent* pEvent ) if (!startValid) { /* We haven't a valid move yet. Check if we are over a valid start */ - startValid = isValidStart(pos, (pEvent->button() == Qt::MidButton)); + startValid = isValidStart(pos, (pEvent->button() == TQt::MidButton)); kdDebug(12011) << "Start pos " << pos << " is valid: " << startValid << endl; // actMove.print(); diff --git a/kgoldrunner/src/kgrdialog.cpp b/kgoldrunner/src/kgrdialog.cpp index def7af7d..789ee953 100644 --- a/kgoldrunner/src/kgrdialog.cpp +++ b/kgoldrunner/src/kgrdialog.cpp @@ -99,7 +99,7 @@ KGrSLDialog::KGrSLDialog (int action, int requestedLevel, int collnIndex, // Initial range 1->150, small step 1, big step 10 and default value 1. number = new TQScrollBar (1, 150, 1, 10, 1, - Qt::Horizontal, dad); + TQt::Horizontal, dad); grid->addWidget (number, 1, 1); TQHBox * numberPair = new TQHBox (dad); @@ -612,7 +612,7 @@ KGrECDialog::KGrECDialog (int action, int collnIndex, prefixL = new TQLabel (i18n("File name prefix:"), prefixBox); ecPrefix = new TQLineEdit (prefixBox); - ecGrp = new TQButtonGroup (1, Qt::Horizontal, 0, dad); + ecGrp = new TQButtonGroup (1, TQt::Horizontal, 0, dad); mainLayout->addWidget (ecGrp); ecTradB = new TQRadioButton (i18n("Traditional rules"), ecGrp); ecKGrB = new TQRadioButton (i18n("KGoldrunner rules"), ecGrp); diff --git a/kgoldrunner/src/kgrgame.cpp b/kgoldrunner/src/kgrgame.cpp index ffe0987d..3f584008 100644 --- a/kgoldrunner/src/kgrgame.cpp +++ b/kgoldrunner/src/kgrgame.cpp @@ -741,8 +741,8 @@ void KGrGame::doDig (int button) { startPlaying(); // If first player-input, start playing. } switch (button) { - case Qt::LeftButton: hero->digLeft (); break; - case Qt::RightButton: hero->digRight (); break; + case TQt::LeftButton: hero->digLeft (); break; + case TQt::RightButton: hero->digRight (); break; default: break; } } @@ -2090,8 +2090,8 @@ void KGrGame::doEdit (int button) i = p.x(); j = p.y(); switch (button) { - case Qt::LeftButton: - case Qt::RightButton: + case TQt::LeftButton: + case TQt::RightButton: paintEditObj = TRUE; insertEditObj (i, j); view->updateCanvas(); @@ -2113,8 +2113,8 @@ void KGrGame::endEdit (int button) i = p.x(); j = p.y(); switch (button) { - case Qt::LeftButton: - case Qt::RightButton: + case TQt::LeftButton: + case TQt::RightButton: paintEditObj = FALSE; if ((i != oldI) || (j != oldJ)) { insertEditObj (i, j); diff --git a/kjumpingcube/kcubewidget.cpp b/kjumpingcube/kcubewidget.cpp index b98ca82e..9b3e0b56 100644 --- a/kjumpingcube/kcubewidget.cpp +++ b/kjumpingcube/kcubewidget.cpp @@ -240,7 +240,7 @@ void KCubeWidget::mouseReleaseEvent(TQMouseEvent *e) if(e->x()< 0 || e->x() > width() || e->y() < 0 || e->y() > height()) return; - if(e->button() == Qt::LeftButton && _clicksAllowed) + if(e->button() == TQt::LeftButton && _clicksAllowed) { stopHint(); emit clicked(row(),column(),true); diff --git a/klickety/board.cpp b/klickety/board.cpp index a251687c..4adc5c59 100644 --- a/klickety/board.cpp +++ b/klickety/board.cpp @@ -8,7 +8,7 @@ using namespace KGrid2D; void KLBoard::contentsMouseReleaseEvent(TQMouseEvent *e) { - if ( e->button()!=Qt::LeftButton || blocked ) return; + if ( e->button()!=TQt::LeftButton || blocked ) return; TQCanvasItemList list = canvas()->collisions(e->pos()); if ( list.count()==0 ) return; diff --git a/klines/linesboard.cpp b/klines/linesboard.cpp index e5fd16a8..7844144e 100644 --- a/klines/linesboard.cpp +++ b/klines/linesboard.cpp @@ -744,7 +744,7 @@ void LinesBoard::demoClick(int x, int y) kapp->enter_loop(); } TQCursor::setPos(dest); - TQMouseEvent ev(TQEvent::MouseButtonPress, lDest, dest, Qt::LeftButton, Qt::LeftButton); + TQMouseEvent ev(TQEvent::MouseButtonPress, lDest, dest, TQt::LeftButton, TQt::LeftButton); mousePressEvent(&ev); } diff --git a/kmahjongg/Preview.cpp b/kmahjongg/Preview.cpp index 725e0a93..8ae93977 100644 --- a/kmahjongg/Preview.cpp +++ b/kmahjongg/Preview.cpp @@ -448,11 +448,11 @@ void FrameImage::paintEvent( TQPaintEvent* pa ) TQPen line; - line.setStyle(Qt::DotLine); + line.setStyle(TQt::DotLine); line.setWidth(2); line.setColor(yellow); p.setPen(line); - p.setBackgroundMode(Qt::OpaqueMode); + p.setBackgroundMode(TQt::OpaqueMode); p.setBackgroundColor(black); int x = pa->rect().left(); diff --git a/kmahjongg/boardwidget.cpp b/kmahjongg/boardwidget.cpp index 8bf8256a..08e9f4e7 100644 --- a/kmahjongg/boardwidget.cpp +++ b/kmahjongg/boardwidget.cpp @@ -440,7 +440,7 @@ void BoardWidget::stackTiles(unsigned char t, unsigned short h, unsigned short x int ss = theTiles.shadowSize(); TQPainter p(&backBuffer); TQPen line; - p.setBackgroundMode(Qt::OpaqueMode); + p.setBackgroundMode(TQt::OpaqueMode); p.setBackgroundColor(black); @@ -1623,7 +1623,7 @@ void BoardWidget::mousePressEvent ( TQMouseEvent* event ) if (gamePaused) return; - if( event->button() == Qt::LeftButton ) + if( event->button() == TQt::LeftButton ) { if( TimerState == Demo ) { diff --git a/kmines/field.cpp b/kmines/field.cpp index 993e1d8f..95d43f9a 100644 --- a/kmines/field.cpp +++ b/kmines/field.cpp @@ -138,9 +138,9 @@ Coord Field::fromPoint(const TQPoint &qp) const int Field::mapMouseButton(TQMouseEvent *e) const { switch (e->button()) { - case Qt::LeftButton: return Settings::mouseAction(Settings::EnumButton::left); - case Qt::MidButton: return Settings::mouseAction(Settings::EnumButton::mid); - case Qt::RightButton: return Settings::mouseAction(Settings::EnumButton::right); + case TQt::LeftButton: return Settings::mouseAction(Settings::EnumButton::left); + case TQt::MidButton: return Settings::mouseAction(Settings::EnumButton::mid); + case TQt::RightButton: return Settings::mouseAction(Settings::EnumButton::right); default: return Settings::EnumMouseAction::ToggleFlag; } } diff --git a/kmines/status.cpp b/kmines/status.cpp index ad5f6ef3..0cc7da39 100644 --- a/kmines/status.cpp +++ b/kmines/status.cpp @@ -239,7 +239,7 @@ void Status::setPlaying() _logRoot = _log.createElement("kmineslog"); _logRoot.setAttribute("version", SHORT_VERSION); TQDateTime date = TQDateTime::currentDateTime(); - _logRoot.setAttribute("date", date.toString(Qt::ISODate)); + _logRoot.setAttribute("date", date.toString(TQt::ISODate)); _logRoot.setAttribute("width", level.width()); _logRoot.setAttribute("height", level.height()); _logRoot.setAttribute("mines", level.nbMines()); diff --git a/knetwalk/src/cell.cpp b/knetwalk/src/cell.cpp index d3ce0906..fd04932d 100644 --- a/knetwalk/src/cell.cpp +++ b/knetwalk/src/cell.cpp @@ -203,11 +203,11 @@ void Cell::paintEvent(TQPaintEvent*) void Cell::mousePressEvent(TQMouseEvent* e) { - if(e->button() == Qt::LeftButton) + if(e->button() == TQt::LeftButton) emit lClicked(iindex); - else if(e->button() == Qt::RightButton) + else if(e->button() == TQt::RightButton) emit rClicked(iindex); - else if(e->button() == Qt::MidButton) + else if(e->button() == TQt::MidButton) emit mClicked(iindex); } diff --git a/kolf/floater.cpp b/kolf/floater.cpp index b2a13ce6..24e9484f 100644 --- a/kolf/floater.cpp +++ b/kolf/floater.cpp @@ -262,7 +262,7 @@ FloaterConfig::FloaterConfig(Floater *floater, TQWidget *parent) m_vlayout->addWidget(new TQLabel(i18n("Moving speed"), this)); TQHBoxLayout *hlayout = new TQHBoxLayout(m_vlayout, spacingHint()); hlayout->addWidget(new TQLabel(i18n("Slow"), this)); - TQSlider *slider = new TQSlider(0, 20, 2, floater->curSpeed(), Qt::Horizontal, this); + TQSlider *slider = new TQSlider(0, 20, 2, floater->curSpeed(), TQt::Horizontal, this); hlayout->addWidget(slider); hlayout->addWidget(new TQLabel(i18n("Fast"), this)); connect(slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(speedChanged(int))); diff --git a/kolf/game.cpp b/kolf/game.cpp index e4c298fe..e29e9932 100644 --- a/kolf/game.cpp +++ b/kolf/game.cpp @@ -249,7 +249,7 @@ Bridge::Bridge(TQRect rect, TQCanvas *canvas) { TQColor color("#92772D"); setBrush(TQBrush(color)); - setPen(Qt::NoPen); + setPen(TQt::NoPen); setZ(998); topWall = new Wall(canvas); @@ -414,7 +414,7 @@ WindmillConfig::WindmillConfig(Windmill *windmill, TQWidget *parent) TQHBoxLayout *hlayout = new TQHBoxLayout(m_vlayout, spacingHint()); hlayout->addWidget(new TQLabel(i18n("Slow"), this)); - TQSlider *slider = new TQSlider(1, 10, 1, windmill->curSpeed(), Qt::Horizontal, this); + TQSlider *slider = new TQSlider(1, 10, 1, windmill->curSpeed(), TQt::Horizontal, this); hlayout->addWidget(slider); hlayout->addWidget(new TQLabel(i18n("Fast"), this)); connect(slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(speedChanged(int))); @@ -673,7 +673,7 @@ EllipseConfig::EllipseConfig(Ellipse *ellipse, TQWidget *parent) TQHBoxLayout *hlayout = new TQHBoxLayout(m_vlayout, spacingHint()); slow1 = new TQLabel(i18n("Slow"), this); hlayout->addWidget(slow1); - slider1 = new TQSlider(1, 100, 5, 100 - ellipse->changeEvery(), Qt::Horizontal, this); + slider1 = new TQSlider(1, 100, 5, 100 - ellipse->changeEvery(), TQt::Horizontal, this); hlayout->addWidget(slider1); fast1 = new TQLabel(i18n("Fast"), this); hlayout->addWidget(fast1); @@ -2446,7 +2446,7 @@ void KolfGame::handleMousePressEvent(TQMouseEvent *e) switch (e->button()) { // select AND move now :) - case Qt::LeftButton: + case TQt::LeftButton: { selectedItem = list.first(); movingItem = selectedItem; @@ -2473,9 +2473,9 @@ void KolfGame::handleMousePressEvent(TQMouseEvent *e) { if (m_useMouse) { - if (!inPlay && e->button() == Qt::LeftButton) + if (!inPlay && e->button() == TQt::LeftButton) puttPress(); - else if (e->button() == Qt::RightButton) + else if (e->button() == TQt::RightButton) toggleShowInfo(); } } @@ -2583,9 +2583,9 @@ void KolfGame::handleMouseReleaseEvent(TQMouseEvent *e) if (!editing && m_useMouse) { - if (!inPlay && e->button() == Qt::LeftButton) + if (!inPlay && e->button() == TQt::LeftButton) puttRelease(); - else if (e->button() == Qt::RightButton) + else if (e->button() == TQt::RightButton) toggleShowInfo(); } diff --git a/kolf/objects/test/test.cpp b/kolf/objects/test/test.cpp index 45124f9c..5a57d98a 100644 --- a/kolf/objects/test/test.cpp +++ b/kolf/objects/test/test.cpp @@ -77,7 +77,7 @@ TestConfig::TestConfig(Test *test, TQWidget *parent) TQHBoxLayout *hlayout = new TQHBoxLayout(layout, spacingHint()); TQLabel *slow = new TQLabel(i18n("Slow"), this); hlayout->addWidget(slow); - TQSlider *slider = new TQSlider(1, 100, 5, 101 - m_test->switchEvery(), Qt::Horizontal, this); + TQSlider *slider = new TQSlider(1, 100, 5, 101 - m_test->switchEvery(), TQt::Horizontal, this); hlayout->addWidget(slider); TQLabel *fast = new TQLabel(i18n("Fast"), this); hlayout->addWidget(fast); diff --git a/konquest/gameenddlg.cpp b/konquest/gameenddlg.cpp index d999c375..0f8f5e7a 100644 --- a/konquest/gameenddlg.cpp +++ b/konquest/gameenddlg.cpp @@ -23,7 +23,7 @@ GameEndDlg::GameEndDlg( TQWidget *parent ) label1->setAlignment( AlignCenter ); turnCountLbl = new TQLabel( page ); - turnCount = new TQSlider( 1, 40, 1, 5, Qt::Horizontal, page ); + turnCount = new TQSlider( 1, 40, 1, 5, TQt::Horizontal, page ); KGuiItem addTurns(i18n("&Add Turns"), TQString(), TQString(), i18n("Add the specified number of turns to the game and continue playing.")); diff --git a/kpat/dealer.cpp b/kpat/dealer.cpp index 43bca4c5..e021ea8c 100644 --- a/kpat/dealer.cpp +++ b/kpat/dealer.cpp @@ -342,7 +342,7 @@ void Dealer::contentsMousePressEvent(TQMouseEvent* e) if (!list.count()) return; - if (e->button() == Qt::LeftButton) { + if (e->button() == TQt::LeftButton) { if (list.first()->rtti() == Card::RTTI) { Card *c = dynamic_cast<Card*>(list.first()); assert(c); @@ -355,7 +355,7 @@ void Dealer::contentsMousePressEvent(TQMouseEvent* e) return; } - if (e->button() == Qt::RightButton) { + if (e->button() == TQt::RightButton) { if (list.first()->rtti() == Card::RTTI) { Card *preview = dynamic_cast<Card*>(list.first()); assert(preview); @@ -1379,9 +1379,9 @@ void Dealer::wheelEvent( TQWheelEvent *e ) e->globalPos(), e->delta(), e->state()); viewportWheelEvent(&ce); if ( !ce.isAccepted() ) { - if ( e->orientation() ==Qt::Horizontal && hScrollBarMode () == AlwaysOn ) + if ( e->orientation() ==TQt::Horizontal && hScrollBarMode () == AlwaysOn ) TQApplication::sendEvent( horizontalScrollBar(), e); - else if (e->orientation() ==Qt::Vertical && vScrollBarMode () == AlwaysOn ) + else if (e->orientation() ==TQt::Vertical && vScrollBarMode () == AlwaysOn ) TQApplication::sendEvent( verticalScrollBar(), e); } else { e->accept(); diff --git a/kpoker/top.cpp b/kpoker/top.cpp index 76e4029e..a8d9002f 100644 --- a/kpoker/top.cpp +++ b/kpoker/top.cpp @@ -250,7 +250,7 @@ bool PokerWindow::eventFilter(TQObject*, TQEvent* e) { if (e->type() == TQEvent::MouseButtonPress) { - if (((TQMouseEvent*)e)->button() == Qt::RightButton) { + if (((TQMouseEvent*)e)->button() == TQt::RightButton) { TQPopupMenu* popup = (TQPopupMenu*) factory()->container("popup", this); if (popup) popup->popup(TQCursor::pos()); diff --git a/kreversi/board.cpp b/kreversi/board.cpp index b265e8fa..7fe2ca3c 100644 --- a/kreversi/board.cpp +++ b/kreversi/board.cpp @@ -136,7 +136,7 @@ void QReversiBoardView::setAnimationSpeed(uint speed) void QReversiBoardView::mousePressEvent(TQMouseEvent *e) { // Only handle left button. No context menu. - if ( e->button() != Qt::LeftButton ) { + if ( e->button() != TQt::LeftButton ) { e->ignore(); return; } diff --git a/kshisen/board.cpp b/kshisen/board.cpp index c868b9fc..3b224718 100644 --- a/kshisen/board.cpp +++ b/kshisen/board.cpp @@ -179,7 +179,7 @@ void Board::mousePressEvent(TQMouseEvent *e) } // Mark tile - if(e->button() == Qt::LeftButton) + if(e->button() == TQt::LeftButton) { clearHighlight(); @@ -188,7 +188,7 @@ void Board::mousePressEvent(TQMouseEvent *e) } // Assist by highlighting all tiles of same type - if(e->button() == Qt::RightButton) + if(e->button() == TQt::RightButton) { int clicked_tile = getField(pos_x, pos_y); diff --git a/ksnake/progress.cpp b/ksnake/progress.cpp index 547ddbab..f155a5ac 100644 --- a/ksnake/progress.cpp +++ b/ksnake/progress.cpp @@ -26,7 +26,7 @@ #include "progress.h" Progress::Progress(TQWidget *parent, const char *name) - : KGameProgress(0, 300, 300, Qt::Horizontal, parent, name) + : KGameProgress(0, 300, 300, TQt::Horizontal, parent, name) { setBarColor("green1"); setTextEnabled(false); diff --git a/ksnake/rattler.cpp b/ksnake/rattler.cpp index 400e9794..d7bc630c 100644 --- a/ksnake/rattler.cpp +++ b/ksnake/rattler.cpp @@ -196,7 +196,7 @@ void Rattler::mousePressEvent( TQMouseEvent *e ) return; uint button = e->button(); - if (button == Qt::RightButton) + if (button == TQt::RightButton) { switch (direction) { @@ -211,7 +211,7 @@ void Rattler::mousePressEvent( TQMouseEvent *e ) } e->accept(); } - else if (button == Qt::LeftButton) + else if (button == TQt::LeftButton) { switch (direction) { diff --git a/ksokoban/PlayField.cpp b/ksokoban/PlayField.cpp index c781e366..2b16ed44 100644 --- a/ksokoban/PlayField.cpp +++ b/ksokoban/PlayField.cpp @@ -700,7 +700,7 @@ PlayField::mousePressEvent(TQMouseEvent *e) { if (!canMoveNow()) return; if (dragInProgress_) { - if (e->button() == Qt::LeftButton) dragObject(e->x(), e->y()); + if (e->button() == TQt::LeftButton) dragObject(e->x(), e->y()); else stopDrag(); return; } @@ -711,7 +711,7 @@ PlayField::mousePressEvent(TQMouseEvent *e) { if (x < 0 || y < 0 || x >= levelMap_->width() || y >= levelMap_->height()) return; - if (e->button() == Qt::LeftButton && pathFinder_.canDrag(x, y)) { + if (e->button() == TQt::LeftButton && pathFinder_.canDrag(x, y)) { TQPainter paint(this); changeCursor(&sizeAllCursor); @@ -732,7 +732,7 @@ PlayField::mousePressEvent(TQMouseEvent *e) { Move *m; switch (e->button()) { - case Qt::LeftButton: + case TQt::LeftButton: m = pathFinder_.search(levelMap_, x, y); if (m != 0) { history_->add(m); @@ -740,11 +740,11 @@ PlayField::mousePressEvent(TQMouseEvent *e) { startMoving(m); } break; - case Qt::MidButton: + case TQt::MidButton: undo(); return; break; - case Qt::RightButton: + case TQt::RightButton: push(x, y); break; diff --git a/kspaceduel/dialogs.cpp b/kspaceduel/dialogs.cpp index bf4b7c3e..90359f4f 100644 --- a/kspaceduel/dialogs.cpp +++ b/kspaceduel/dialogs.cpp @@ -145,7 +145,7 @@ ConfigSetup::ConfigSetup(SConfig *custom,TQWidget *parent,const char *name) slider[i]=new TQSlider(EditVal[i][0]*EditDiv[i],EditVal[i][1]*EditDiv[i], (EditVal[i][1]-EditVal[i][0])/10, EditVal[i][2]*EditDiv[i], - Qt::Horizontal,configWidgets[Parent[i]]); + TQt::Horizontal,configWidgets[Parent[i]]); connect(slider[i],TQT_SIGNAL(valueChanged(int)),TQT_SLOT(sliderChanged(int))); value[i]=new TQLCDNumber(LCDLen,configWidgets[Parent[i]]); value[i]->setFrameStyle(TQFrame::NoFrame); diff --git a/libksirtet/common/misc_ui.cpp b/libksirtet/common/misc_ui.cpp index 376c0c57..c95b1b6b 100644 --- a/libksirtet/common/misc_ui.cpp +++ b/libksirtet/common/misc_ui.cpp @@ -173,7 +173,7 @@ void GiftPool::reset() //----------------------------------------------------------------------------- PlayerProgress::PlayerProgress(BaseBoard *board, TQWidget *parent, const char *name) - : KGameProgress(0, board->matrix().height(), 0, Qt::Vertical, + : KGameProgress(0, board->matrix().height(), 0, TQt::Vertical, parent, name), _board(board) { setBackgroundColor(lightGray); 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); diff --git a/lskat/lskat/lskatview.cpp b/lskat/lskat/lskatview.cpp index ce1c7ec0..d8a1a9bd 100644 --- a/lskat/lskat/lskatview.cpp +++ b/lskat/lskat/lskatview.cpp @@ -790,7 +790,7 @@ TQPoint LSkatView::calcCardPos(int x,int y) // mouse click event void LSkatView::mousePressEvent( TQMouseEvent *mouse ) { - if (mouse->button()!=Qt::LeftButton) return ; + if (mouse->button()!=TQt::LeftButton) return ; if (!getDocument()->IsRunning()) return ; if (getDocument()->GetMoveStatus()!=-1) return ; diff --git a/lskat/lskat/namedlg.cpp b/lskat/lskat/namedlg.cpp index 3bd0cca6..2cbe6ef1 100644 --- a/lskat/lskat/namedlg.cpp +++ b/lskat/lskat/namedlg.cpp @@ -44,7 +44,7 @@ NameDlg::NameDlg( TQWidget *parent, const char *name,bool /* modal */, WFlags /* player_names = new TQGroupBox( page, "player_names" ); player_names->setTitle(i18n("Player Names") ); - player_names->setColumnLayout(0, Qt::Vertical ); + player_names->setColumnLayout(0, TQt::Vertical ); player_names->layout()->setSpacing( 0 ); player_names->layout()->setMargin( 0 ); vbox_2 = new TQVBoxLayout( player_names->layout() ); diff --git a/twin4/twin4/twin4view.cpp b/twin4/twin4/twin4view.cpp index 71ce1eeb..81bb159b 100644 --- a/twin4/twin4/twin4view.cpp +++ b/twin4/twin4/twin4view.cpp @@ -680,7 +680,7 @@ void Kwin4View::slotMouseInput(KGameIO *input,TQDataStream &stream,TQMouseEvent return; } - if (mouse->button()!=Qt::LeftButton) return ; + if (mouse->button()!=TQt::LeftButton) return ; //if (!doc->IsRunning()) return ; TQPoint point; |