summaryrefslogtreecommitdiffstats
path: root/tdeui/tests/twindowtest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeui/tests/twindowtest.cpp')
-rw-r--r--tdeui/tests/twindowtest.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/tdeui/tests/twindowtest.cpp b/tdeui/tests/twindowtest.cpp
index f826f13b0..8fd5170e0 100644
--- a/tdeui/tests/twindowtest.cpp
+++ b/tdeui/tests/twindowtest.cpp
@@ -56,13 +56,13 @@ setAutoSaveSettings();
// We insert item "Exit" with accelerator ALT-Q, and connect
// it to application's exit-slot.
fileMenu->insertItem ("&Exit", TDEApplication::kApplication(),
- TQT_SLOT( quit() ), ALT + Key_Q );
+ TQ_SLOT( quit() ), ALT + Key_Q );
// Another popup...
toolBarMenu = new TQPopupMenu;
menuBar->insertItem ("&Toolbars", toolBarMenu);
- toolBarMenu->insertItem ("(Un)Hide tollbar 1", this, TQT_SLOT(slotHide1()));
- toolBarMenu->insertItem ("(Un)Hide tollbar 2", this, TQT_SLOT(slotHide2()));
+ toolBarMenu->insertItem ("(Un)Hide tollbar 1", this, TQ_SLOT(slotHide1()));
+ toolBarMenu->insertItem ("(Un)Hide tollbar 2", this, TQ_SLOT(slotHide2()));
itemsMenu = new TQPopupMenu;
menuBar->insertItem ("&Items", itemsMenu);
@@ -71,15 +71,15 @@ setAutoSaveSettings();
lineL = true; // Lined is enabled
greenF = false; // Frame not inserted
- itemsMenu->insertItem ("delete/insert exit button", this, TQT_SLOT(slotExit()));
- itemsMenu->insertItem ("insert/delete green frame!", this, TQT_SLOT(slotFrame()));
- itemsMenu->insertItem ("enable/disable Lined", this, TQT_SLOT(slotLined()));
- itemsMenu->insertItem ("Toggle fileNew", this, TQT_SLOT(slotNew()));
- itemsMenu->insertItem ("Clear comboBox", this, TQT_SLOT(slotClearCombo()));
- itemsMenu->insertItem ("Insert List in Combo", this, TQT_SLOT(slotInsertListInCombo()));
- itemsMenu->insertItem ("Make item 3 curent", this, TQT_SLOT(slotMakeItem3Current()));
- //itemsMenu->insertItem ("Insert clock!", this, TQT_SLOT(slotInsertClock()));
- itemsMenu->insertItem ("Important!", this, TQT_SLOT(slotImportant()));
+ itemsMenu->insertItem ("delete/insert exit button", this, TQ_SLOT(slotExit()));
+ itemsMenu->insertItem ("insert/delete green frame!", this, TQ_SLOT(slotFrame()));
+ itemsMenu->insertItem ("enable/disable Lined", this, TQ_SLOT(slotLined()));
+ itemsMenu->insertItem ("Toggle fileNew", this, TQ_SLOT(slotNew()));
+ itemsMenu->insertItem ("Clear comboBox", this, TQ_SLOT(slotClearCombo()));
+ itemsMenu->insertItem ("Insert List in Combo", this, TQ_SLOT(slotInsertListInCombo()));
+ itemsMenu->insertItem ("Make item 3 curent", this, TQ_SLOT(slotMakeItem3Current()));
+ //itemsMenu->insertItem ("Insert clock!", this, TQ_SLOT(slotInsertClock()));
+ itemsMenu->insertItem ("Important!", this, TQ_SLOT(slotImportant()));
menuBar->insertSeparator();
helpMenu = new KHelpMenu(this, "KWindowTest was programmed by Sven Radej");
@@ -113,30 +113,30 @@ setAutoSaveSettings();
// First four buttons
pix = BarIcon("document-new");
- itemId = tb->insertButton(pix, 0, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNew()),
+ itemId = tb->insertButton(pix, 0, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotNew()),
true, "Create.. (toggles upper button)", 50);
pix = BarIcon("document-open");
- tb->insertButton(pix, 1, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOpen()),
+ tb->insertButton(pix, 1, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotOpen()),
false, "Open");
pix = BarIcon("filefloppy");
- tb->insertButton(pix, 2, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSave()),
+ tb->insertButton(pix, 2, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotSave()),
true, "Save (beep or delayed popup)");
tb->setDelayedPopup(2, itemsMenu);
pix = BarIcon("document-print");
- tb->insertButton(pix, 3, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotPrint()),
+ tb->insertButton(pix, 3, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotPrint()),
true, "Print (enables/disables open)");
// And a combobox
// arguments: text (or strList), ID, writable, signal, object, slot, enabled,
// tooltiptext, size
- tb->insertCombo (TQString("one"), 4, true, TQT_SIGNAL(activated(const TQString&)), this,
- TQT_SLOT(slotList(const TQString&)), true, "ComboBox", 150);
+ tb->insertCombo (TQString("one"), 4, true, TQ_SIGNAL(activated(const TQString&)), this,
+ TQ_SLOT(slotList(const TQString&)), true, "ComboBox", 150);
// Then one line editor
// arguments: text, id, signal, object (this), slot, enabled, tooltiptext, size
- tb->insertLined ("ftp://ftp.kde.org/pub/kde", 5, TQT_SIGNAL(returnPressed()), this,
- TQT_SLOT(slotReturn()), true, "Location", 200);
+ tb->insertLined ("ftp://ftp.kde.org/pub/kde", 5, TQ_SIGNAL(returnPressed()), this,
+ TQ_SLOT(slotReturn()), true, "Location", 200);
// Set this Lined to auto size itself. Note that only one item (Lined or Combo)
// Can be set to autosize; If you specify more of them only last (according to
@@ -148,8 +148,8 @@ setAutoSaveSettings();
// Now add another button and align it right
pix = BarIcon("system-log-out");
- tb->insertButton(pix, 6, TQT_SIGNAL(clicked()), TDEApplication::kApplication(),
- TQT_SLOT( quit() ), true, "Exit");
+ tb->insertButton(pix, 6, TQ_SIGNAL(clicked()), TDEApplication::kApplication(),
+ TQ_SLOT( quit() ), true, "Exit");
tb->alignItemRight (6);
// Another toolbar
@@ -159,16 +159,16 @@ setAutoSaveSettings();
pix = BarIcon("document-new");
tb1->insertButton(pix, 0, true, "Create new file2 (Toggle)");
tb1->setToggle(0);
- tb1->addConnection (0, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggle(bool)));
+ tb1->addConnection (0, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotToggle(bool)));
pix = BarIcon("document-open");
- tb1->insertButton(pix, 1, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOpen()),
+ tb1->insertButton(pix, 1, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotOpen()),
true, "Open (starts progres in sb)");
tb1->insertSeparator ();
pix = BarIcon("filefloppy");
- tb1->insertButton(pix, 2, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSave()),
+ tb1->insertButton(pix, 2, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotSave()),
true, "Save file2 (autorepeat)");
tb1->setAutoRepeat(2);
@@ -201,7 +201,7 @@ setAutoSaveSettings();
rg->addButton(6);
rg->addButton(7);
- connect (tb1, TQT_SIGNAL(toggled(int)), this, TQT_SLOT(slotToggled(int)));
+ connect (tb1, TQ_SIGNAL(toggled(int)), this, TQ_SLOT(slotToggled(int)));
// Set caption for floating toolbars
tb->setTitle ("Toolbar 1");
@@ -216,8 +216,8 @@ setAutoSaveSettings();
//addToolBar (tb1);
//addToolBar (tb);
- connect (tb, TQT_SIGNAL(highlighted(int,bool)), this, TQT_SLOT(slotMessage(int, bool)));
- connect (tb1, TQT_SIGNAL(highlighted(int, bool)), this, TQT_SLOT(slotMessage(int, bool)));
+ connect (tb, TQ_SIGNAL(highlighted(int,bool)), this, TQ_SLOT(slotMessage(int, bool)));
+ connect (tb1, TQ_SIGNAL(highlighted(int, bool)), this, TQ_SLOT(slotMessage(int, bool)));
// Floating is enabled by default, so you don't need this.
// tb->enableFloating(true);
@@ -243,7 +243,7 @@ setAutoSaveSettings();
completions->insertItem("/home/");
completions->insertItem("/vmlinuz :-)");
- connect (completions, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotCompletionsMenu(int)));
+ connect (completions, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotCompletionsMenu(int)));
pr = 0;
}
/***********************************/
@@ -273,7 +273,7 @@ void testWindow::slotOpen()
// statusBar->message(pr);
timer = new TQTimer (pr);
- connect (timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotGoGoGoo()));
+ connect (timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotGoGoGoo()));
timer->start(100);
}
@@ -408,8 +408,8 @@ void testWindow::slotExit ()
{
TQPixmap pix;
pix = BarIcon("system-log-out");
- tb->insertButton(pix, 6, TQT_SIGNAL(clicked()), TDEApplication::kApplication(),
- TQT_SLOT( quit() ), true, "Exit");
+ tb->insertButton(pix, 6, TQ_SIGNAL(clicked()), TDEApplication::kApplication(),
+ TQ_SLOT( quit() ), true, "Exit");
tb->alignItemRight (6);
exitB = true;
}