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);
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)));
// Always on top

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

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

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

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

@ -54,7 +54,7 @@ KMoonDlg::KMoonDlg(int a, bool n, bool m, TQWidget *parent, const char *name)
"at this angle.");
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->setTickInterval(45);
slider->setEnabled(TQPixmap::defaultDepth() > 8);

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

@ -225,7 +225,7 @@ void TopLevel::showEvent ( TQShowEvent * )
/** Handle mousePressEvent */
void TopLevel::mousePressEvent(TQMouseEvent *event)
{
if (event->button() == Qt::LeftButton) {
if (event->button() == TQt::LeftButton) {
if (ready) {
stop(); // reset tooltip and stop animation
} else {
@ -234,7 +234,7 @@ void TopLevel::mousePressEvent(TQMouseEvent *event)
else
start_menu->popup(TQCursor::pos());
}
} else if (event->button() == Qt::RightButton)
} else if (event->button() == TQt::RightButton)
menu->popup(TQCursor::pos());
// else if (event->button() == MidButton) // currently unused
}
@ -682,7 +682,7 @@ void TopLevel::config()
/* left side - tea list and list-modifying buttons */
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);
listbox = new TQListView(listgroup, "listBox");
@ -729,7 +729,7 @@ void TopLevel::config()
/* right side - tea properties */
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);
TQHBox *propbox = new TQHBox(editgroup);
@ -751,7 +751,7 @@ void TopLevel::config()
connect(timeEdit, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(spinBoxValueChanged(int)));
/* 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);
TQWidget *actionconf_widget = new TQWidget(actiongroup);

@ -64,7 +64,7 @@ KSpriteSetup::KSpriteSetup( TQWidget *parent, const char *name )
tl11->addStretch(1);
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);
connect( sb, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotSpeed( int ) ) );

@ -32,7 +32,7 @@
#include <kiconloader.h>
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();
setBackgroundOrigin( AncestorOrigin );

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

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

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

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

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

Loading…
Cancel
Save