Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/29/head
Michele Calgaro 1 year ago
parent a876313d64
commit ebce9b5386
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -74,7 +74,7 @@ AmorDialog::AmorDialog()
label = new TQLabel(i18n("Offset:"), offsetBox); label = new TQLabel(i18n("Offset:"), offsetBox);
TQSlider *slider = new TQSlider(-40, 40, 5, mConfig.mOffset, TQSlider *slider = new TQSlider(-40, 40, 5, mConfig.mOffset,
Qt::Vertical, offsetBox); TQt::Vertical, offsetBox);
connect(slider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotOffset(int))); connect(slider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotOffset(int)));
// Always on top // Always on top

@ -98,7 +98,7 @@ void AmorWidget::mousePressEvent(TQMouseEvent *me)
// //
void AmorWidget::mouseMoveEvent(TQMouseEvent *me) void AmorWidget::mouseMoveEvent(TQMouseEvent *me)
{ {
if ( me->state() == Qt::LeftButton ) { if ( me->state() == TQt::LeftButton ) {
if ( !dragging && (clickPos-me->globalPos()).manhattanLength() > 3 ) if ( !dragging && (clickPos-me->globalPos()).manhattanLength() > 3 )
dragging = true; dragging = true;
if ( dragging ) { if ( dragging ) {
@ -116,7 +116,7 @@ void AmorWidget::mouseReleaseEvent(TQMouseEvent *me)
{ {
if ( dragging ) if ( dragging )
emit dragged( me->globalPos() - clickPos, true ); emit dragged( me->globalPos() - clickPos, true );
else if ( me->state() == Qt::RightButton ) else if ( me->state() == TQt::RightButton )
emit mouseClicked(clickPos); emit mouseClicked(clickPos);
clickPos = TQPoint(); clickPos = TQPoint();

@ -227,7 +227,7 @@ void PiecesTable::mousePressEvent(TQMouseEvent* e)
{ {
QtTableView::mousePressEvent(e); QtTableView::mousePressEvent(e);
if (e->button() == Qt::RightButton) { if (e->button() == TQt::RightButton) {
// execute RMB popup and check result // execute RMB popup and check result
_menu->exec(mapToGlobal(e->pos())); _menu->exec(mapToGlobal(e->pos()));
e->accept(); e->accept();

@ -1439,7 +1439,7 @@ TQScrollBar *QtTableView::verticalScrollBar() const
{ {
QtTableView *that = (QtTableView*)this; // semantic const QtTableView *that = (QtTableView*)this; // semantic const
if ( !vScrollBar ) { if ( !vScrollBar ) {
TQScrollBar *sb = new TQScrollBar( Qt::Vertical, that ); TQScrollBar *sb = new TQScrollBar( TQt::Vertical, that );
#ifndef TQT_NO_CURSOR #ifndef TQT_NO_CURSOR
sb->setCursor( arrowCursor ); sb->setCursor( arrowCursor );
#endif #endif
@ -1470,7 +1470,7 @@ TQScrollBar *QtTableView::horizontalScrollBar() const
{ {
QtTableView *that = (QtTableView*)this; // semantic const QtTableView *that = (QtTableView*)this; // semantic const
if ( !hScrollBar ) { if ( !hScrollBar ) {
TQScrollBar *sb = new TQScrollBar( Qt::Horizontal, that ); TQScrollBar *sb = new TQScrollBar( TQt::Horizontal, that );
#ifndef TQT_NO_CURSOR #ifndef TQT_NO_CURSOR
sb->setCursor( arrowCursor ); sb->setCursor( arrowCursor );
#endif #endif

@ -134,11 +134,11 @@ void MoonPAWidget::mousePressEvent( TQMouseEvent *e)
if (!popup) if (!popup)
return; return;
if (e->button() == Qt::RightButton) { if (e->button() == TQt::RightButton) {
popup->popup(mapToGlobal(e->pos())); popup->popup(mapToGlobal(e->pos()));
popup->exec(); popup->exec();
} }
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
showAbout(); showAbout();
} }
} }

@ -54,7 +54,7 @@ KMoonDlg::KMoonDlg(int a, bool n, bool m, TQWidget *parent, const char *name)
"at this angle."); "at this angle.");
TQWhatsThis::add(label, text); TQWhatsThis::add(label, text);
slider = new TQSlider( -90, 90, 2, angle, Qt::Horizontal, hbox1, "slider" ); slider = new TQSlider( -90, 90, 2, angle, TQt::Horizontal, hbox1, "slider" );
slider->setTickmarks(TQSlider::Above); slider->setTickmarks(TQSlider::Above);
slider->setTickInterval(45); slider->setTickInterval(45);
slider->setEnabled(TQPixmap::defaultDepth() > 8); slider->setEnabled(TQPixmap::defaultDepth() > 8);

@ -156,9 +156,9 @@ void Kodometer::FindAllScreens(void)
vPixelsPerMM = (double)Dh / (double)DhMM; vPixelsPerMM = (double)Dh / (double)DhMM;
hPixelsPerMM = (double)Dw / (double)DwMM; hPixelsPerMM = (double)Dw / (double)DwMM;
screenInfo[i].PixelsPerMM = (vPixelsPerMM + hPixelsPerMM) / 2.0; screenInfo[i].PixelsPerMM = (vPixelsPerMM + hPixelsPerMM) / 2.0;
// kdDebug() << " Qt::Vertical pixels/mm are " << vPixelsPerMM << // kdDebug() << " Vertical pixels/mm are " << vPixelsPerMM <<
// "mm" << endl; // "mm" << endl;
// kdDebug() << " Qt::Horizontal pixels/mm are " << hPixelsPerMM << // kdDebug() << " Horizontal pixels/mm are " << hPixelsPerMM <<
// "mm" << endl; // "mm" << endl;
// kdDebug() << " Average pixels/mm are " << // kdDebug() << " Average pixels/mm are " <<
// screenInfo[i].PixelsPerMM << "mm" << endl; // screenInfo[i].PixelsPerMM << "mm" << endl;

@ -225,7 +225,7 @@ void TopLevel::showEvent ( TQShowEvent * )
/** Handle mousePressEvent */ /** Handle mousePressEvent */
void TopLevel::mousePressEvent(TQMouseEvent *event) void TopLevel::mousePressEvent(TQMouseEvent *event)
{ {
if (event->button() == Qt::LeftButton) { if (event->button() == TQt::LeftButton) {
if (ready) { if (ready) {
stop(); // reset tooltip and stop animation stop(); // reset tooltip and stop animation
} else { } else {
@ -234,7 +234,7 @@ void TopLevel::mousePressEvent(TQMouseEvent *event)
else else
start_menu->popup(TQCursor::pos()); start_menu->popup(TQCursor::pos());
} }
} else if (event->button() == Qt::RightButton) } else if (event->button() == TQt::RightButton)
menu->popup(TQCursor::pos()); menu->popup(TQCursor::pos());
// else if (event->button() == MidButton) // currently unused // else if (event->button() == MidButton) // currently unused
} }
@ -682,7 +682,7 @@ void TopLevel::config()
/* left side - tea list and list-modifying buttons */ /* left side - tea list and list-modifying buttons */
TQBoxLayout *leftside = new TQVBoxLayout(box); TQBoxLayout *leftside = new TQVBoxLayout(box);
TQGroupBox *listgroup = new TQGroupBox(2,Qt::Vertical, i18n("Tea List"), page); TQGroupBox *listgroup = new TQGroupBox(2,TQt::Vertical, i18n("Tea List"), page);
leftside->addWidget(listgroup, 0, 0); leftside->addWidget(listgroup, 0, 0);
listbox = new TQListView(listgroup, "listBox"); listbox = new TQListView(listgroup, "listBox");
@ -729,7 +729,7 @@ void TopLevel::config()
/* right side - tea properties */ /* right side - tea properties */
TQBoxLayout *rightside = new TQVBoxLayout(box); TQBoxLayout *rightside = new TQVBoxLayout(box);
editgroup = new TQGroupBox(2,Qt::Vertical, i18n("Tea Properties"), page); editgroup = new TQGroupBox(2,TQt::Vertical, i18n("Tea Properties"), page);
rightside->addWidget(editgroup, 0, 0); rightside->addWidget(editgroup, 0, 0);
TQHBox *propbox = new TQHBox(editgroup); TQHBox *propbox = new TQHBox(editgroup);
@ -751,7 +751,7 @@ void TopLevel::config()
connect(timeEdit, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(spinBoxValueChanged(int))); connect(timeEdit, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(spinBoxValueChanged(int)));
/* bottom - timeout actions */ /* bottom - timeout actions */
TQGroupBox *actiongroup = new TQGroupBox(4,Qt::Vertical, i18n("Action"), page); TQGroupBox *actiongroup = new TQGroupBox(4,TQt::Vertical, i18n("Action"), page);
top_box->addWidget(actiongroup, 0, 0); top_box->addWidget(actiongroup, 0, 0);
TQWidget *actionconf_widget = new TQWidget(actiongroup); TQWidget *actionconf_widget = new TQWidget(actiongroup);

@ -64,7 +64,7 @@ KSpriteSetup::KSpriteSetup( TQWidget *parent, const char *name )
tl11->addStretch(1); tl11->addStretch(1);
tl11->addWidget(label); tl11->addWidget(label);
TQSlider *sb = new TQSlider(0, 100, 10, speed, Qt::Horizontal, this ); TQSlider *sb = new TQSlider(0, 100, 10, speed, TQt::Horizontal, this );
tl11->addWidget(sb); tl11->addWidget(sb);
connect( sb, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotSpeed( int ) ) ); connect( sb, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotSpeed( int ) ) );

@ -32,7 +32,7 @@
#include <kiconloader.h> #include <kiconloader.h>
dockwidget::dockwidget(const TQString &location, TQWidget *parent, dockwidget::dockwidget(const TQString &location, TQWidget *parent,
const char *name) : TQWidget(parent,name), m_locationCode( location ), m_orientation(Qt::Horizontal ) const char *name) : TQWidget(parent,name), m_locationCode( location ), m_orientation(TQt::Horizontal )
{ {
m_font = TDEGlobalSettings::generalFont(); m_font = TDEGlobalSettings::generalFont();
setBackgroundOrigin( AncestorOrigin ); setBackgroundOrigin( AncestorOrigin );

@ -41,7 +41,7 @@ public:
void setLocationCode(const TQString &locationCode); void setLocationCode(const TQString &locationCode);
void setViewMode(int); void setViewMode(int);
void setOrientation(Qt::Orientation o) { m_orientation = o; } void setOrientation(TQt::Orientation o) { m_orientation = o; }
/** resize the view **/ /** resize the view **/
void resizeView(const TQSize &size); void resizeView(const TQSize &size);
int widthForHeight(int h); int widthForHeight(int h);

@ -302,7 +302,7 @@ void kweather::timeout()
int kweather::widthForHeight(int h) const int kweather::widthForHeight(int h) const
{ {
//kdDebug(12004) << "widthForHeight " << h << endl; //kdDebug(12004) << "widthForHeight " << h << endl;
dockWidget->setOrientation(Qt::Horizontal); dockWidget->setOrientation(TQt::Horizontal);
int w = dockWidget->widthForHeight(h); int w = dockWidget->widthForHeight(h);
return w; return w;
} }
@ -310,7 +310,7 @@ int kweather::widthForHeight(int h) const
int kweather::heightForWidth(int w) const int kweather::heightForWidth(int w) const
{ {
kdDebug(12004) << "heightForWidth " << w<< endl; kdDebug(12004) << "heightForWidth " << w<< endl;
dockWidget->setOrientation(Qt::Vertical); dockWidget->setOrientation(TQt::Vertical);
int h = dockWidget->heightForWidth( w ); int h = dockWidget->heightForWidth( w );
return h; return h;
} }
@ -373,7 +373,7 @@ void kweather::slotPrefsAccepted()
void kweather::mousePressEvent(TQMouseEvent *e) void kweather::mousePressEvent(TQMouseEvent *e)
{ {
if ( e->button() != Qt::RightButton ) if ( e->button() != TQt::RightButton )
{ {
KPanelApplet::mousePressEvent( e ); KPanelApplet::mousePressEvent( e );
return; return;

@ -115,7 +115,7 @@ void KWWApplet::mousePressEvent(TQMouseEvent *e)
clicked = e->type() == TQMouseEvent::MouseButtonDblClick; clicked = e->type() == TQMouseEvent::MouseButtonDblClick;
} }
if (clicked && e->button() == Qt::LeftButton) if (clicked && e->button() == TQt::LeftButton)
{ {
KRun::run("kworldclock", KURL::List()); KRun::run("kworldclock", KURL::List());
} }

@ -410,7 +410,7 @@ void MapWidget::themeSelected(int index)
void MapWidget::mousePressEvent(TQMouseEvent *ev) void MapWidget::mousePressEvent(TQMouseEvent *ev)
{ {
if (ev->button() == Qt::RightButton) if (ev->button() == TQt::RightButton)
{ {
_flagPos = ev->pos(); _flagPos = ev->pos();
_popup->exec(ev->globalPos()); _popup->exec(ev->globalPos());

@ -138,7 +138,7 @@ bool ZoneClock::eventFilter(TQObject *obj, TQEvent *ev)
if (ev->type() == TQEvent::MouseButtonPress) if (ev->type() == TQEvent::MouseButtonPress)
{ {
TQMouseEvent *e = (TQMouseEvent*)ev; TQMouseEvent *e = (TQMouseEvent*)ev;
if (e->button() == Qt::RightButton) if (e->button() == TQt::RightButton)
_popup->exec(e->globalPos()); _popup->exec(e->globalPos());
} }

Loading…
Cancel
Save