diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | f7ceb2957839027e8027a9a4c0dfff730cb9b704 (patch) | |
tree | d1d583f11612d149bc0718c80779df4653699dbb /src/common/gui/dialog.cpp | |
parent | d98fea1f859d23e1b1220a65d7a8eda3b757fd08 (diff) | |
download | piklab-f7ceb2957839027e8027a9a4c0dfff730cb9b704.tar.gz piklab-f7ceb2957839027e8027a9a4c0dfff730cb9b704.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/common/gui/dialog.cpp')
-rw-r--r-- | src/common/gui/dialog.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/common/gui/dialog.cpp b/src/common/gui/dialog.cpp index f8ee222..58b12ba 100644 --- a/src/common/gui/dialog.cpp +++ b/src/common/gui/dialog.cpp @@ -17,10 +17,10 @@ #include "misc_gui.h" //----------------------------------------------------------------------------- -Dialog::Dialog(TQWidget *tqparent, const char *name, bool modal, +Dialog::Dialog(TQWidget *parent, const char *name, bool modal, const TQString &caption, int buttonMask, ButtonCode defaultButton, bool separator, const TQSize &defaultSize) - : KDialogBase(tqparent, name, modal, caption, buttonMask, defaultButton, separator), + : KDialogBase(parent, name, modal, caption, buttonMask, defaultButton, separator), _defaultSize(defaultSize) { PBusyCursor::start(); @@ -32,8 +32,8 @@ Dialog::Dialog(TQWidget *tqparent, const char *name, bool modal, } Dialog::Dialog(DialogType type, const TQString &caption, int buttonMask, ButtonCode defaultButton, - TQWidget *tqparent, const char *name, bool modal, bool separator, const TQSize &defaultSize) - : KDialogBase(type, caption, buttonMask, defaultButton, tqparent, name, modal, separator), + TQWidget *parent, const char *name, bool modal, bool separator, const TQSize &defaultSize) + : KDialogBase(type, caption, buttonMask, defaultButton, parent, name, modal, separator), _defaultSize(defaultSize) { PBusyCursor::start(); @@ -62,10 +62,10 @@ TreeListDialog::Item::Item(const TQString &label, TQWidget *page, const TQString : KListViewItem(item, label), _page(page), _title(title) {} -TreeListDialog::TreeListDialog(TQWidget *tqparent, const char *name, bool modal, +TreeListDialog::TreeListDialog(TQWidget *parent, const char *name, bool modal, const TQString &caption, int buttonMask, ButtonCode defaultButton, bool separator) - : Dialog(tqparent, name, modal, caption, buttonMask, defaultButton, separator) + : Dialog(parent, name, modal, caption, buttonMask, defaultButton, separator) { TQVBoxLayout *top = new TQVBoxLayout(mainWidget(), 0, 10); @@ -119,9 +119,9 @@ TQWidget *TreeListDialog::addPage(const TQStringList &labels) item->setSelectable(last); } for (uint i=1; i<labels.count(); i++) { - TQListViewItem *tqparent = item; + TQListViewItem *parent = item; item = 0; - TQListViewItemIterator iti(tqparent); + TQListViewItemIterator iti(parent); for (; it.current(); ++it) { if ( it.current()->text(0)==labels[i] ) { item = it.current(); @@ -132,7 +132,7 @@ TQWidget *TreeListDialog::addPage(const TQStringList &labels) page = new TQWidget(_stack); connect(page, TQT_SIGNAL(destroyed(TQObject *)), TQT_SLOT(pageDestroyed(TQObject *))); _stack->addWidget(page); - item = new Item(labels[i], page, labels[i], tqparent); + item = new Item(labels[i], page, labels[i], parent); item->setOpen(true); bool last = ( labels.count()==i+1 ); item->setSelectable(last); @@ -189,8 +189,8 @@ void TreeListDialog::pageDestroyed(TQObject *object) //----------------------------------------------------------------------------- TextEditorDialog::TextEditorDialog(const TQString &text, const TQString &caption, - bool wrapAtWidgetWidth, TQWidget *tqparent) - : Dialog(tqparent, "text_editor_dialog", true, caption, Close, Close, false, TQSize(200, 100)) + bool wrapAtWidgetWidth, TQWidget *parent) + : Dialog(parent, "text_editor_dialog", true, caption, Close, Close, false, TQSize(200, 100)) { KTextEdit *w = new KTextEdit(text, TQString(), this); w->setReadOnly(true); |