Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/25/head
Michele Calgaro 1 year ago
parent 05581ab840
commit 4243c1195d
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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);

@ -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);
}

@ -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);
}

@ -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());

@ -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)));

@ -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<65>l

@ -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);

@ -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;
}
/*

@ -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());

@ -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."));
}

@ -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 );

@ -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 );
}

@ -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 );
}

@ -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();

@ -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);

@ -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);

@ -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);

@ -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;

@ -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);
}

@ -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();

@ -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 )
{

@ -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;
}
}

@ -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());

@ -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);
}

@ -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)));

@ -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();
}

@ -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);

@ -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."));

@ -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();

@ -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());

@ -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;
}

@ -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);

@ -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);

@ -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)
{

@ -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;

@ -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);

@ -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);

@ -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);

@ -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);

@ -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);

@ -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);

@ -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 ;

@ -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() );

@ -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;

Loading…
Cancel
Save