Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit de36ef57b2)
r14.1.x
Michele Calgaro 1 year ago
parent 1448a29b46
commit 0769201035
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -65,7 +65,7 @@ Knowit::Knowit(TQWidget*, const char *name) : TDEMainWindow(0, name),
Layout = new TQSplitter(this); Layout = new TQSplitter(this);
Items = new KnowitTree(Layout, "Items"); Items = new KnowitTree(Layout, "Items");
TQSplitter* EditLayout = new TQSplitter(Layout); TQSplitter* EditLayout = new TQSplitter(Layout);
EditLayout->setOrientation(Qt::Vertical); EditLayout->setOrientation(TQt::Vertical);
Edit = new KnowitEdit(EditLayout, "Edit"); Edit = new KnowitEdit(EditLayout, "Edit");
Links = new KnowitLinks(EditLayout); Links = new KnowitLinks(EditLayout);
@ -573,8 +573,8 @@ void Knowit::applyOptions(const KnowitOptions& O, bool store)
else else
AutosaveTimer->start(O.autosave * 60 * 1000, true); AutosaveTimer->start(O.autosave * 60 * 1000, true);
Edit->swapEOL = O.enterBreakLine; Edit->swapEOL = O.enterBreakLine;
Layout->setOrientation(O.horizontalSplit ? Qt::Horizontal : Layout->setOrientation(O.horizontalSplit ? TQt::Horizontal :
Qt::Vertical); TQt::Vertical);
Items->setAlternateBackground(O.alternateTree ? TQColor(O.alternateColor) : TQColor()); Items->setAlternateBackground(O.alternateTree ? TQColor(O.alternateColor) : TQColor());
Items->repaintContents(); Items->repaintContents();
if (Items->currentItem()) if (Items->currentItem())

@ -35,8 +35,8 @@ void KnowitEdit::keyPressEvent(TQKeyEvent* e)
{ {
if (swapEOL && if (swapEOL &&
(e->key() == TQt::Key_Enter || e->key() == TQt::Key_Return) && (e->key() == TQt::Key_Enter || e->key() == TQt::Key_Return) &&
(e->state() | (Qt::NoButton | TQt::ControlButton | TQt::Keypad) == (e->state() | (TQt::NoButton | TQt::ControlButton | TQt::Keypad) ==
(Qt::NoButton | TQt::ControlButton | TQt::Keypad))) { (TQt::NoButton | TQt::ControlButton | TQt::Keypad))) {
TQKeyEvent* e1 = new TQKeyEvent(TQKeyEvent::KeyPress, e->key(), TQKeyEvent* e1 = new TQKeyEvent(TQKeyEvent::KeyPress, e->key(),
e->ascii(), e->state() ^ TQt::ControlButton, e->text(), e->isAutoRepeat(), e->ascii(), e->state() ^ TQt::ControlButton, e->text(), e->isAutoRepeat(),
e->count()); e->count());

@ -44,8 +44,8 @@ void KnowitLinks::keyPressEvent(TQKeyEvent* e)
{ {
if (currentItem() != -1 && (e->key() == TQt::Key_Enter || e->key() == TQt::Key_Return)) { if (currentItem() != -1 && (e->key() == TQt::Key_Enter || e->key() == TQt::Key_Return)) {
e->ignore(); e->ignore();
if ((e->state() | Qt::NoButton | TQt::Keypad) == if ((e->state() | TQt::NoButton | TQt::Keypad) ==
(Qt::NoButton | TQt::Keypad)) emit linkOpen(); (TQt::NoButton | TQt::Keypad)) emit linkOpen();
else emit linkOpenWith(); else emit linkOpenWith();
} }
else if (currentItem() != -1 && e->key() == TQt::Key_Delete) { else if (currentItem() != -1 && e->key() == TQt::Key_Delete) {

Loading…
Cancel
Save