summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-05 11:54:15 +0900
committerMichele Calgaro <[email protected]>2023-11-05 20:55:58 +0900
commit0769201035d1d083ab53a0ecd68172d7dc6fbc8d (patch)
treeaba126a222edd7991e8f77944da6784503b31833
parent1448a29b4641228157e43916e4ceb207f8c94aaa (diff)
downloadknowit-0769201035d1d083ab53a0ecd68172d7dc6fbc8d.tar.gz
knowit-0769201035d1d083ab53a0ecd68172d7dc6fbc8d.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit de36ef57b200f39eb5cd55ac5168369dc735cff0)
-rw-r--r--src/knowit.cpp6
-rw-r--r--src/knowitedit.cpp4
-rw-r--r--src/knowitlinks.cpp4
3 files changed, 7 insertions, 7 deletions
diff --git a/src/knowit.cpp b/src/knowit.cpp
index 730b2af..8df37d1 100644
--- a/src/knowit.cpp
+++ b/src/knowit.cpp
@@ -65,7 +65,7 @@ Knowit::Knowit(TQWidget*, const char *name) : TDEMainWindow(0, name),
Layout = new TQSplitter(this);
Items = new KnowitTree(Layout, "Items");
TQSplitter* EditLayout = new TQSplitter(Layout);
- EditLayout->setOrientation(Qt::Vertical);
+ EditLayout->setOrientation(TQt::Vertical);
Edit = new KnowitEdit(EditLayout, "Edit");
Links = new KnowitLinks(EditLayout);
@@ -573,8 +573,8 @@ void Knowit::applyOptions(const KnowitOptions& O, bool store)
else
AutosaveTimer->start(O.autosave * 60 * 1000, true);
Edit->swapEOL = O.enterBreakLine;
- Layout->setOrientation(O.horizontalSplit ? Qt::Horizontal :
- Qt::Vertical);
+ Layout->setOrientation(O.horizontalSplit ? TQt::Horizontal :
+ TQt::Vertical);
Items->setAlternateBackground(O.alternateTree ? TQColor(O.alternateColor) : TQColor());
Items->repaintContents();
if (Items->currentItem())
diff --git a/src/knowitedit.cpp b/src/knowitedit.cpp
index 748759d..c197555 100644
--- a/src/knowitedit.cpp
+++ b/src/knowitedit.cpp
@@ -35,8 +35,8 @@ void KnowitEdit::keyPressEvent(TQKeyEvent* e)
{
if (swapEOL &&
(e->key() == TQt::Key_Enter || e->key() == TQt::Key_Return) &&
- (e->state() | (Qt::NoButton | TQt::ControlButton | TQt::Keypad) ==
- (Qt::NoButton | TQt::ControlButton | TQt::Keypad))) {
+ (e->state() | (TQt::NoButton | TQt::ControlButton | TQt::Keypad) ==
+ (TQt::NoButton | TQt::ControlButton | TQt::Keypad))) {
TQKeyEvent* e1 = new TQKeyEvent(TQKeyEvent::KeyPress, e->key(),
e->ascii(), e->state() ^ TQt::ControlButton, e->text(), e->isAutoRepeat(),
e->count());
diff --git a/src/knowitlinks.cpp b/src/knowitlinks.cpp
index 2114715..3dfb92b 100644
--- a/src/knowitlinks.cpp
+++ b/src/knowitlinks.cpp
@@ -44,8 +44,8 @@ void KnowitLinks::keyPressEvent(TQKeyEvent* e)
{
if (currentItem() != -1 && (e->key() == TQt::Key_Enter || e->key() == TQt::Key_Return)) {
e->ignore();
- if ((e->state() | Qt::NoButton | TQt::Keypad) ==
- (Qt::NoButton | TQt::Keypad)) emit linkOpen();
+ if ((e->state() | TQt::NoButton | TQt::Keypad) ==
+ (TQt::NoButton | TQt::Keypad)) emit linkOpen();
else emit linkOpenWith();
}
else if (currentItem() != -1 && e->key() == TQt::Key_Delete) {