diff options
Diffstat (limited to 'ksig/ksig.cpp')
-rw-r--r-- | ksig/ksig.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/ksig/ksig.cpp b/ksig/ksig.cpp index 801b18c..4ac8e9c 100644 --- a/ksig/ksig.cpp +++ b/ksig/ksig.cpp @@ -26,7 +26,7 @@ #include <klistviewsearchline.h> #include <klocale.h> -#include <qsplitter.h> +#include <tqsplitter.h> #include "ksig.h" #include "siglistviewitem.h" @@ -36,7 +36,7 @@ // public methods //////////////////////////////////////////////////////////////////////////////// -KSig::KSig(QWidget *parent, const char *name) : KMainWindow(parent, name), +KSig::KSig(TQWidget *parent, const char *name) : KMainWindow(parent, name), changed(false) { setupActions(); @@ -63,23 +63,23 @@ KSig::~KSig() void KSig::setupActions() { - KStdAction::openNew(this, SLOT(add()), actionCollection()); - new KAction(i18n("Remove"), "editdelete", 0, this, SLOT(remove()), actionCollection(), "remove"); - KStdAction::save(this, SLOT(save()), actionCollection()); - KStdAction::quit(this, SLOT(quit()), actionCollection()); - - KStdAction::cut(kapp, SLOT(cut()), actionCollection()); - KStdAction::copy(kapp, SLOT(copy()), actionCollection()); - KStdAction::paste(kapp, SLOT(paste()), actionCollection()); - new KAction(i18n("C&lear"), "editclear", 0, kapp, SLOT(clear()), actionCollection(), "clear"); - - new KAction(i18n("Edit Standard Header"), 0, 0, this, SLOT(editHeader()), actionCollection(), "editHeader"); - new KAction(i18n("Edit Standard Footer"), 0, 0, this, SLOT(editFooter()), actionCollection(), "editFooter"); + KStdAction::openNew(this, TQT_SLOT(add()), actionCollection()); + new KAction(i18n("Remove"), "editdelete", 0, this, TQT_SLOT(remove()), actionCollection(), "remove"); + KStdAction::save(this, TQT_SLOT(save()), actionCollection()); + KStdAction::quit(this, TQT_SLOT(quit()), actionCollection()); + + KStdAction::cut(kapp, TQT_SLOT(cut()), actionCollection()); + KStdAction::copy(kapp, TQT_SLOT(copy()), actionCollection()); + KStdAction::paste(kapp, TQT_SLOT(paste()), actionCollection()); + new KAction(i18n("C&lear"), "editclear", 0, kapp, TQT_SLOT(clear()), actionCollection(), "clear"); + + new KAction(i18n("Edit Standard Header"), 0, 0, this, TQT_SLOT(editHeader()), actionCollection(), "editHeader"); + new KAction(i18n("Edit Standard Footer"), 0, 0, this, TQT_SLOT(editFooter()), actionCollection(), "editFooter"); } void KSig::setupLayout() { - splitter = new QSplitter(Qt::Vertical, this); + splitter = new TQSplitter(Qt::Vertical, this); setCentralWidget(splitter); @@ -96,9 +96,9 @@ void KSig::setupLayout() statusBar()->show(); updateListLock = false; - connect(sigEdit, SIGNAL(textChanged()), this, SLOT(updateList())); - connect(sigList, SIGNAL(selectionChanged()), this, SLOT(updateEdit())); - connect(sigEdit, SIGNAL(cursorPositionChanged(int,int)), this, SLOT(updateStatus(int,int))); + connect(sigEdit, TQT_SIGNAL(textChanged()), this, TQT_SLOT(updateList())); + connect(sigList, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(updateEdit())); + connect(sigEdit, TQT_SIGNAL(cursorPositionChanged(int,int)), this, TQT_SLOT(updateStatus(int,int))); } void KSig::setupSearchLine() @@ -132,7 +132,7 @@ void KSig::readConfig() { KConfigGroupSaver saver(config, "Settings"); if(splitter) { - QValueList<int> sizes; + TQValueList<int> sizes; sizes.append(config->readNumEntry("ListSize", -1)); sizes.append(config->readNumEntry("EditSize", -1)); @@ -152,7 +152,7 @@ void KSig::writeConfig() { KConfigGroupSaver saver(config, "Settings"); if(splitter) { - QValueList<int> sizes = splitter->sizes(); + TQValueList<int> sizes = splitter->sizes(); config->writeEntry("ListSize", sizes[0]); config->writeEntry("EditSize", sizes[1]); @@ -167,7 +167,7 @@ void KSig::writeConfig() bool KSig::queryClose() { if(changed) { - int saveChanges = KMessageBox::questionYesNoCancel(this, i18n("Do you want to save your changes before exiting?"),QString::null,KStdGuiItem::save(),KStdGuiItem::discard()); + int saveChanges = KMessageBox::questionYesNoCancel(this, i18n("Do you want to save your changes before exiting?"),TQString::null,KStdGuiItem::save(),KStdGuiItem::discard()); if(saveChanges == KMessageBox::Cancel) return(false); else if(saveChanges == KMessageBox::Yes) @@ -211,9 +211,9 @@ void KSig::setDataChanged(bool value) changed = value; if(changed) - setCaption(kapp->makeStdCaption(QString::null, true, true)); + setCaption(kapp->makeStdCaption(TQString::null, true, true)); else - setCaption(kapp->makeStdCaption(QString::null, true, false)); + setCaption(kapp->makeStdCaption(TQString::null, true, false)); } void KSig::editHeader() @@ -222,7 +222,7 @@ void KSig::editHeader() t->setLabel(i18n("Standard signature header:")); t->setText(header); - connect(t, SIGNAL(textUpdated(const QString &)), this, SLOT(setHeader(const QString &))); + connect(t, TQT_SIGNAL(textUpdated(const TQString &)), this, TQT_SLOT(setHeader(const TQString &))); t->exec(); } @@ -233,7 +233,7 @@ void KSig::editFooter() t->setLabel(i18n("Standard signature footer:")); t->setText(footer); - connect(t, SIGNAL(textUpdated(const QString &)), this, SLOT(setFooter(const QString &))); + connect(t, TQT_SIGNAL(textUpdated(const TQString &)), this, TQT_SLOT(setFooter(const TQString &))); t->exec(); } |