Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/22/head
Michele Calgaro 1 year ago
parent 30b4cbb2a2
commit 9a4d4259ab
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -296,7 +296,7 @@ void tdepowersave::showConfigureDialog() {
i18n("Warning").utf8(), 15000); i18n("Warning").utf8(), 15000);
} }
} else { } else {
configDlg->setWindowState((configDlg->windowState() & ~Qt::WindowMinimized) | Qt::WindowActive); configDlg->setWindowState((configDlg->windowState() & ~TQt::WindowMinimized) | TQt::WindowActive);
configDlg->setActiveWindow(); configDlg->setActiveWindow();
} }
@ -1765,7 +1765,7 @@ void tdepowersave::wheelEvent (TQWheelEvent *qwe)
if (!hwinfo->supportBrightness() && settings->brightness) if (!hwinfo->supportBrightness() && settings->brightness)
return; return;
if (qwe->orientation () == Qt::Vertical) { if (qwe->orientation () == TQt::Vertical) {
if (qwe->delta() > 0) { if (qwe->delta() > 0) {
do_brightnessUp(5); do_brightnessUp(5);
} else { } else {
@ -1787,10 +1787,10 @@ void tdepowersave::mousePressEvent(TQMouseEvent *qme){
KSystemTray::mousePressEvent(qme); KSystemTray::mousePressEvent(qme);
if (hwinfo->isOnline()) { if (hwinfo->isOnline()) {
if (qme->button() == Qt::RightButton){ if (qme->button() == TQt::RightButton){
// TODO check if maybe some rechecks needed // TODO check if maybe some rechecks needed
this->contextMenu()->exec(TQCursor::pos()); this->contextMenu()->exec(TQCursor::pos());
} else if (qme->button() == Qt::LeftButton) { } else if (qme->button() == TQt::LeftButton) {
showDetailedDialog(); showDetailedDialog();
} }
} }

Loading…
Cancel
Save