summaryrefslogtreecommitdiffstats
path: root/kexi/formeditor/tabstopdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/formeditor/tabstopdialog.cpp')
-rw-r--r--kexi/formeditor/tabstopdialog.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/kexi/formeditor/tabstopdialog.cpp b/kexi/formeditor/tabstopdialog.cpp
index 067c333a..6de89b71 100644
--- a/kexi/formeditor/tabstopdialog.cpp
+++ b/kexi/formeditor/tabstopdialog.cpp
@@ -17,9 +17,9 @@
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qtooltip.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqtooltip.h>
#include <kiconloader.h>
#include <kdebug.h>
@@ -37,11 +37,11 @@ using namespace KFormDesigner;
////////// The Tab Stop Dialog to edit tab order ///////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
-TabStopDialog::TabStopDialog(QWidget *parent)
-: KDialogBase(parent, "tabstop_dialog", true, i18n("Edit Tab Order"), Ok|Cancel, Ok, false)
+TabStopDialog::TabStopDialog(TQWidget *tqparent)
+: KDialogBase(tqparent, "tabstop_dialog", true, i18n("Edit Tab Order"), Ok|Cancel, Ok, false)
{
- QFrame *frame = makeMainWidget();
- QGridLayout *l = new QGridLayout(frame, 2, 2, 0, 6);
+ TQFrame *frame = makeMainWidget();
+ TQGridLayout *l = new TQGridLayout(frame, 2, 2, 0, 6);
m_treeview = new ObjectTreeView(frame, "tabstops_treeview", true);
m_treeview->setItemsMovable(true);
m_treeview->setDragEnabled(true);
@@ -51,28 +51,28 @@ TabStopDialog::TabStopDialog(QWidget *parent)
l->addWidget(m_treeview, 0, 0);
m_treeview->m_form = 0;
- connect(m_treeview, SIGNAL(currentChanged(QListViewItem*)), this, SLOT(updateButtons(QListViewItem*)));
- connect(m_treeview, SIGNAL(moved(QListViewItem*, QListViewItem*, QListViewItem*)), this, SLOT(updateButtons(QListViewItem*)));
+ connect(m_treeview, TQT_SIGNAL(currentChanged(TQListViewItem*)), this, TQT_SLOT(updateButtons(TQListViewItem*)));
+ connect(m_treeview, TQT_SIGNAL(moved(TQListViewItem*, TQListViewItem*, TQListViewItem*)), this, TQT_SLOT(updateButtons(TQListViewItem*)));
- QVBoxLayout *vbox = new QVBoxLayout();
+ TQVBoxLayout *vbox = new TQVBoxLayout();
l->addLayout(vbox, 0, 1);
m_btnUp = new KPushButton(SmallIconSet("1uparrow"), i18n("Move Up"), frame);
- QToolTip::add( m_btnUp, i18n("Move widget up") );
+ TQToolTip::add( m_btnUp, i18n("Move widget up") );
vbox->addWidget(m_btnUp);
- connect(m_btnUp, SIGNAL(clicked()), this, SLOT(moveItemUp()));
+ connect(m_btnUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(moveItemUp()));
m_btnDown = new KPushButton(SmallIconSet("1downarrow"), i18n("Move Down"), frame);
- QToolTip::add( m_btnDown, i18n("Move widget down") );
+ TQToolTip::add( m_btnDown, i18n("Move widget down") );
vbox->addWidget(m_btnDown);
- connect(m_btnDown, SIGNAL(clicked()), this, SLOT(moveItemDown()));
+ connect(m_btnDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(moveItemDown()));
vbox->addStretch();
- m_check = new QCheckBox(i18n("Handle tab order automatically"), frame, "tabstops_check");
- connect(m_check, SIGNAL(toggled(bool)), this, SLOT(slotRadioClicked(bool)));
+ m_check = new TQCheckBox(i18n("Handle tab order automatically"), frame, "tabstops_check");
+ connect(m_check, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotRadioClicked(bool)));
l->addMultiCellWidget(m_check, 1, 1, 0, 1);
updateGeometry();
- setInitialSize(QSize(500+m_btnUp->width(), QMAX(400,m_treeview->height())));
+ setInitialSize(TQSize(500+m_btnUp->width(), TQMAX(400,m_treeview->height())));
}
TabStopDialog::~TabStopDialog()
@@ -99,15 +99,15 @@ int TabStopDialog::exec(Form *form)
m_treeview->setSelected(m_treeview->firstChild(), true);
}
- if (QDialog::Rejected == KDialogBase::exec())
- return QDialog::Rejected;
+ if (TQDialog::Rejected == KDialogBase::exec())
+ return TQDialog::Rejected;
//accepted
form->setAutoTabStops(m_check->isChecked());
if(form->autoTabStops())
{
form->autoAssignTabStops();
- return QDialog::Accepted;
+ return TQDialog::Accepted;
}
//add items to the order list
@@ -120,7 +120,7 @@ int TabStopDialog::exec(Form *form)
form->tabStops()->append(tree);
item = (ObjectTreeViewItem*)item->nextSibling();
}
- return QDialog::Accepted;
+ return TQDialog::Accepted;
}
void
@@ -128,7 +128,7 @@ TabStopDialog::moveItemUp()
{
if (!m_treeview->selectedItem())
return;
- QListViewItem *before = m_treeview->selectedItem()->itemAbove();
+ TQListViewItem *before = m_treeview->selectedItem()->itemAbove();
before->moveItem(m_treeview->selectedItem());
updateButtons(m_treeview->selectedItem());
}
@@ -136,7 +136,7 @@ TabStopDialog::moveItemUp()
void
TabStopDialog::moveItemDown()
{
- QListViewItem *item = m_treeview->selectedItem();
+ TQListViewItem *item = m_treeview->selectedItem();
if (!item)
return;
item->moveItem( item->nextSibling());
@@ -144,10 +144,10 @@ TabStopDialog::moveItemDown()
}
void
-TabStopDialog::updateButtons(QListViewItem *item)
+TabStopDialog::updateButtons(TQListViewItem *item)
{
m_btnUp->setEnabled( item && (item->itemAbove() && m_treeview->isEnabled()
- /*&& (item->itemAbove()->parent() == item->parent()))*/ ));
+ /*&& (item->itemAbove()->tqparent() == item->tqparent()))*/ ));
m_btnDown->setEnabled( item && item->nextSibling() && m_treeview->isEnabled() );
}