Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/11/head
Michele Calgaro 1 year ago
parent 24a3d0b9ce
commit 9761441f6e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1141,7 +1141,7 @@ fi
if test "$kde_qtver" = "3"; then
cat >> conftest.$ac_ext <<EOF
(void)QStyleFactory::create(TQString::null);
QCursor c(Qt::WhatsThisCursor);
QCursor c(TQt::WhatsThisCursor);
EOF
fi
cat >> conftest.$ac_ext <<EOF

@ -66,7 +66,7 @@ void SQ_ImageConvert::createExtension()
SQ_WriteOption *c = new SQ_WriteOption(this);
c->slider->setRange(0, 255, 1, true);
setExtension(c);
setOrientation(Qt::Horizontal);
setOrientation(TQt::Horizontal);
}
void SQ_ImageConvert::slotDebugText(const TQString &text, bool bold)

@ -530,7 +530,7 @@ void KSquirrel::createWidgets(int createFirst)
pTLocation->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Minimum);
// main splitter
mainView = new TQSplitter(Qt::Horizontal, mainPage); Q_ASSERT(mainView);
mainView = new TQSplitter(TQt::Horizontal, mainPage); Q_ASSERT(mainView);
KStatusBar *s = new KStatusBar(mainPage);

@ -323,7 +323,7 @@ class KSquirrel : public TDEMainWindow, public DCOPObject
*
* will call KSquirrel::control("image_next"), which will
* construct TQKeyEvent(TQEvent::KeyPress, TQt::Key_PageDown,
* TQt::Key_PageDown, Qt::NoButton)
* TQt::Key_PageDown, TQt::NoButton)
* and send it to SQ_GLWidget. SQ_GLWidget will catch keypress event,
* and load next image in the current directory.
*/

@ -521,7 +521,7 @@ void SQ_GLWidget::matrixChanged()
*/
void SQ_GLWidget::wheelEvent(TQWheelEvent *e)
{
if(e->delta() < 0 && e->state() == Qt::NoButton)
if(e->delta() < 0 && e->state() == TQt::NoButton)
{
#ifndef KSQUIRREL_PART
SQ_Config::instance()->setGroup("GL view");
@ -534,7 +534,7 @@ void SQ_GLWidget::wheelEvent(TQWheelEvent *e)
slotZoomPlus();
}
else if(e->delta() > 0 && e->state() == Qt::NoButton)
else if(e->delta() > 0 && e->state() == TQt::NoButton)
{
#ifndef KSQUIRREL_PART
SQ_Config::instance()->setGroup("GL view");
@ -564,7 +564,7 @@ void SQ_GLWidget::mousePressEvent(TQMouseEvent *e)
setFocus();
// left button, update cursor
if(e->button() == Qt::LeftButton && e->state() == Qt::NoButton && tab->glselection == -1)
if(e->button() == TQt::LeftButton && e->state() == TQt::NoButton && tab->glselection == -1)
{
#ifndef KSQUIRREL_PART
TQTime t = TQTime::currentTime();
@ -593,7 +593,7 @@ void SQ_GLWidget::mousePressEvent(TQMouseEvent *e)
movetype = 1;
}
// left button + SHIFT, let's start drawing zoom frame
else if(e->button() == Qt::LeftButton && (e->state() == TQt::ShiftButton || tab->glselection != -1))
else if(e->button() == TQt::LeftButton && (e->state() == TQt::ShiftButton || tab->glselection != -1))
{
// stop animation!
stopAnimation();
@ -609,10 +609,10 @@ void SQ_GLWidget::mousePressEvent(TQMouseEvent *e)
movetype = 2;
}
// right button - show context menu
else if(e->button() == Qt::RightButton)
else if(e->button() == TQt::RightButton)
menu->popup(TQCursor::pos());
// middle button - toggle fullscreen state
else if(e->button() == Qt::MidButton)
else if(e->button() == TQt::MidButton)
toggleFullScreen();
}

@ -199,7 +199,7 @@ void SQ_GLWidget::createToolbar()
pAToolPrint = new SQ_ToolButton(TQPixmap(locate("data", "images/actions/print.png")), i18n("Print"), TQT_TQOBJECT(this), TQT_SLOT(slotPrint()), toolbar);
new SQ_ToolButton(TQPixmap(locate("data", "images/actions/shownav.png")), i18n("Show navigator"), TQT_TQOBJECT(this), TQT_SLOT(slotShowNav()), toolbar);
slider_zoom = new TQSlider(1, 38, 2, 19, Qt::Horizontal, toolbar);
slider_zoom = new TQSlider(1, 38, 2, 19, TQt::Horizontal, toolbar);
slider_zoom->setTickmarks(TQSlider::Below);
slider_zoom->setTickInterval(19);
connect(slider_zoom, TQT_SIGNAL(valueChanged(int)), TQT_TQOBJECT(this), TQT_SLOT(slotSetZoomPercents(int)));
@ -1395,8 +1395,8 @@ void SQ_GLWidget::slotCloseRequest(int index)
TQMouseEvent ev(TQEvent::MouseMove,
TQCursor::pos(),
SQ_GLView::window()->tabbar()->mapFromGlobal(TQCursor::pos()),
Qt::NoButton,
Qt::NoButton);
TQt::NoButton,
TQt::NoButton);
TDEApplication::sendEvent(SQ_GLView::window()->tabbar(), &ev);

@ -388,7 +388,7 @@ void SQ_CategoryBrowserMenu::mouseMoveEvent(TQMouseEvent *e)
{
TQPopupMenu::mouseMoveEvent(e);
if (!(e->state() & Qt::LeftButton)) return;
if (!(e->state() & TQt::LeftButton)) return;
if(_lastpress == TQPoint(-1, -1)) return;
// DND delay

@ -56,7 +56,7 @@ SQ_MultiBar::SQ_MultiBar(TQWidget *parent, const char *name) : TQHBox(parent, na
setSpacing(0);
TQSplitter *ts = new TQSplitter(Qt::Vertical, this);
TQSplitter *ts = new TQSplitter(TQt::Vertical, this);
ts->setOpaqueResize(false);
// TQWigdetStack will contain all widgets

@ -243,7 +243,7 @@ void SQ_PreviewWidget::mousePressEvent(TQMouseEvent *e)
{
e->accept();
if(e->button() == Qt::RightButton)
if(e->button() == TQt::RightButton)
popup->exec(e->globalPos());
}

@ -54,7 +54,7 @@ void SQ_FileThumbViewItem::paintText(TQPainter *p, const TQColorGroup &cg)
}
else
{
if(iconView()->itemTextBackground() != Qt::NoBrush)
if(iconView()->itemTextBackground() != TQt::NoBrush)
p->fillRect(rectText, iconView()->itemTextBackground());
p->setPen(cg.text());

@ -521,7 +521,7 @@ void SQ_GLWidget::matrixChanged()
*/
void SQ_GLWidget::wheelEvent(TQWheelEvent *e)
{
if(e->delta() < 0 && e->state() == Qt::NoButton)
if(e->delta() < 0 && e->state() == TQt::NoButton)
{
#ifndef KSQUIRREL_PART
SQ_Config::instance()->setGroup("GL view");
@ -534,7 +534,7 @@ void SQ_GLWidget::wheelEvent(TQWheelEvent *e)
slotZoomPlus();
}
else if(e->delta() > 0 && e->state() == Qt::NoButton)
else if(e->delta() > 0 && e->state() == TQt::NoButton)
{
#ifndef KSQUIRREL_PART
SQ_Config::instance()->setGroup("GL view");
@ -564,7 +564,7 @@ void SQ_GLWidget::mousePressEvent(TQMouseEvent *e)
setFocus();
// left button, update cursor
if(e->button() == Qt::LeftButton && e->state() == Qt::NoButton && tab->glselection == -1)
if(e->button() == TQt::LeftButton && e->state() == TQt::NoButton && tab->glselection == -1)
{
#ifndef KSQUIRREL_PART
TQTime t = TQTime::currentTime();
@ -593,7 +593,7 @@ void SQ_GLWidget::mousePressEvent(TQMouseEvent *e)
movetype = 1;
}
// left button + SHIFT, let's start drawing zoom frame
else if(e->button() == Qt::LeftButton && (e->state() == TQt::ShiftButton || tab->glselection != -1))
else if(e->button() == TQt::LeftButton && (e->state() == TQt::ShiftButton || tab->glselection != -1))
{
// stop animation!
stopAnimation();
@ -609,10 +609,10 @@ void SQ_GLWidget::mousePressEvent(TQMouseEvent *e)
movetype = 2;
}
// right button - show context menu
else if(e->button() == Qt::RightButton)
else if(e->button() == TQt::RightButton)
menu->popup(TQCursor::pos());
// middle button - toggle fullscreen state
else if(e->button() == Qt::MidButton)
else if(e->button() == TQt::MidButton)
toggleFullScreen();
}

@ -199,7 +199,7 @@ void SQ_GLWidget::createToolbar()
pAToolPrint = new SQ_ToolButton(TQPixmap(locate("data", "images/actions/print.png")), i18n("Print"), TQT_TQOBJECT(this), TQT_SLOT(slotPrint()), toolbar);
new SQ_ToolButton(TQPixmap(locate("data", "images/actions/shownav.png")), i18n("Show navigator"), TQT_TQOBJECT(this), TQT_SLOT(slotShowNav()), toolbar);
slider_zoom = new TQSlider(1, 38, 2, 19, Qt::Horizontal, toolbar);
slider_zoom = new TQSlider(1, 38, 2, 19, TQt::Horizontal, toolbar);
slider_zoom->setTickmarks(TQSlider::Below);
slider_zoom->setTickInterval(19);
connect(slider_zoom, TQT_SIGNAL(valueChanged(int)), TQT_TQOBJECT(this), TQT_SLOT(slotSetZoomPercents(int)));
@ -1395,8 +1395,8 @@ void SQ_GLWidget::slotCloseRequest(int index)
TQMouseEvent ev(TQEvent::MouseMove,
TQCursor::pos(),
SQ_GLView::window()->tabbar()->mapFromGlobal(TQCursor::pos()),
Qt::NoButton,
Qt::NoButton);
TQt::NoButton,
TQt::NoButton);
TDEApplication::sendEvent(SQ_GLView::window()->tabbar(), &ev);

@ -83,6 +83,6 @@ void SQ_PluginsInfo::slotDoubleClicked(TQListViewItem *i)
void SQ_PluginsInfo::slotMouseButtonClicked(int button, TQListViewItem *i, const TQPoint &, int c)
{
if(button == Qt::LeftButton && i && !c)
if(button == TQt::LeftButton && i && !c)
slotDoubleClicked(i);
}

Loading…
Cancel
Save