diff options
Diffstat (limited to 'kommander/widgets/aboutdialog.cpp')
-rw-r--r-- | kommander/widgets/aboutdialog.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/kommander/widgets/aboutdialog.cpp b/kommander/widgets/aboutdialog.cpp index 7f8c3428..9377b377 100644 --- a/kommander/widgets/aboutdialog.cpp +++ b/kommander/widgets/aboutdialog.cpp @@ -9,7 +9,7 @@ // Copyright: See COPYING file that comes with this distribution // // -#include <qfile.h> +#include <tqfile.h> #include "aboutdialog.h" #include "kommanderplugin.h" @@ -21,7 +21,7 @@ #include <klocale.h> #include <kstandarddirs.h> -#include <qtextstream.h> +#include <tqtextstream.h> enum Functions { FirstFunction = 159, @@ -36,17 +36,17 @@ enum Functions { LastFunction }; -AboutDialog::AboutDialog(QWidget *parent, const char *name) - : QLabel(parent, name), KommanderWidget(this) +AboutDialog::AboutDialog(TQWidget *parent, const char *name) + : TQLabel(parent, name), KommanderWidget(this) { - QStringList states; + TQStringList states; states << "default"; setStates(states); setDisplayStates(states); if (KommanderWidget::inEditor) { setPixmap(KGlobal::iconLoader()->loadIcon("kommander", KIcon::NoGroup, KIcon::SizeMedium)); - setFrameStyle(QFrame::Box | QFrame::Plain); + setFrameStyle(TQFrame::Box | TQFrame::Plain); setLineWidth(1); setFixedSize(pixmap()->size()); } @@ -55,21 +55,21 @@ AboutDialog::AboutDialog(QWidget *parent, const char *name) m_aboutData = 0L; KommanderPlugin::setDefaultGroup(Group::DCOP); - KommanderPlugin::registerFunction(Initialize, "initialize(QString widget, QString appName, QString icon, QString version, QString copyright)", + KommanderPlugin::registerFunction(Initialize, "initialize(TQString widget, TQString appName, TQString icon, TQString version, TQString copyright)", i18n("Sets information about the application. This is the first method that must me called, any addition to the dialog done before initialization will be ignored."), 5); - KommanderPlugin::registerFunction(AddAuthor, "addAuthor(QString widget, QString author, QString task, QString email, QString webAddress)", + KommanderPlugin::registerFunction(AddAuthor, "addAuthor(TQString widget, TQString author, TQString task, TQString email, TQString webAddress)", i18n("Add an author. Only the author name is required."), 2, 5); - KommanderPlugin::registerFunction(AddTranslator, "addTranslator(QString widget, QString author, QString email)", + KommanderPlugin::registerFunction(AddTranslator, "addTranslator(TQString widget, TQString author, TQString email)", i18n("Add a translator. Only the name is required."), 2, 3); - KommanderPlugin::registerFunction(SetDescription, "setDescription(QString widget, QString description)", + KommanderPlugin::registerFunction(SetDescription, "setDescription(TQString widget, TQString description)", i18n("Set a short description text."), 2); - KommanderPlugin::registerFunction(SetHomepage, "setHomepage(QString widget, QString homepage)", + KommanderPlugin::registerFunction(SetHomepage, "setHomepage(TQString widget, TQString homepage)", i18n("Set a homepage address."), 2); - KommanderPlugin::registerFunction(SetBugAddress, "setBugAddress(QString widget, QString address)", + KommanderPlugin::registerFunction(SetBugAddress, "setBugAddress(TQString widget, TQString address)", i18n("Set an email address, where bugs can be reported."), 2); - KommanderPlugin::registerFunction(SetLicense, "setLicense(QString widget, QString license)", + KommanderPlugin::registerFunction(SetLicense, "setLicense(TQString widget, TQString license)", i18n("Sets license information of the application. The parameter can be one of the license keys - GPL_V2, LGPL_V2, BSD, ARTISTIC -, or a freely specified text."), 2); - KommanderPlugin::registerFunction(Version, "version(QString widget)", + KommanderPlugin::registerFunction(Version, "version(TQString widget)", i18n("Returns the set version string."), 1); } @@ -80,21 +80,21 @@ AboutDialog::~AboutDialog() m_aboutData = 0L; } -QString AboutDialog::currentState() const +TQString AboutDialog::currentState() const { - return QString("default"); + return TQString("default"); } bool AboutDialog::isKommanderWidget() const { return true; } -QStringList AboutDialog::associatedText() const +TQStringList AboutDialog::associatedText() const { return KommanderWidget::associatedText(); } -void AboutDialog::setAssociatedText(const QStringList& a_at) +void AboutDialog::setAssociatedText(const TQStringList& a_at) { KommanderWidget::setAssociatedText(a_at); } @@ -105,7 +105,7 @@ bool AboutDialog::isFunctionSupported(int f) return (f > FirstFunction && f < LastFunction) || f == DCOP::execute; } -void AboutDialog::initialize(const QString& appName, const QString &icon, const QString& version, const QString& copyright) +void AboutDialog::initialize(const TQString& appName, const TQString &icon, const TQString& version, const TQString& copyright) { delete m_aboutData; m_authors.clear(); @@ -125,7 +125,7 @@ void AboutDialog::initialize(const QString& appName, const QString &icon, const m_aboutData->setProgramLogo(KGlobal::iconLoader()->loadIcon(m_icon, KIcon::NoGroup, KIcon::SizeMedium).convertToImage()); } -void AboutDialog::addAuthor(const QString& author, const QString &task, const QString& email, const QString &webAddress) +void AboutDialog::addAuthor(const TQString& author, const TQString &task, const TQString& email, const TQString &webAddress) { if (!m_aboutData) return; @@ -136,7 +136,7 @@ void AboutDialog::addAuthor(const QString& author, const QString &task, const QS m_aboutData->addAuthor(author, task, email, webAddress); } -void AboutDialog::addTranslator(const QString& author, const QString& email) +void AboutDialog::addTranslator(const TQString& author, const TQString& email) { if (!m_aboutData) return; @@ -145,7 +145,7 @@ void AboutDialog::addTranslator(const QString& author, const QString& email) m_aboutData->setTranslator(author, email); } -void AboutDialog::setDescription(const QString& description) +void AboutDialog::setDescription(const TQString& description) { if (!m_aboutData) return; @@ -153,7 +153,7 @@ void AboutDialog::setDescription(const QString& description) m_aboutData->setShortDescription(m_description); } -void AboutDialog::setHomepage(const QString &homepage) +void AboutDialog::setHomepage(const TQString &homepage) { if (!m_aboutData) return; @@ -161,7 +161,7 @@ void AboutDialog::setHomepage(const QString &homepage) m_aboutData->setHomepage(m_homepage); } -void AboutDialog::setBugAddress(const QString &bugAddress) +void AboutDialog::setBugAddress(const TQString &bugAddress) { if (!m_aboutData) return; @@ -169,12 +169,12 @@ void AboutDialog::setBugAddress(const QString &bugAddress) m_aboutData->setBugAddress(m_bugaddress); } -void AboutDialog::setLicense(const QString &key) +void AboutDialog::setLicense(const TQString &key) { if (!m_aboutData) return; - QString license = key.upper(); - QString file; + TQString license = key.upper(); + TQString file; if (key == "GPL_V2") { file = locate("data", "LICENSES/GPL_V2"); @@ -191,7 +191,7 @@ void AboutDialog::setLicense(const QString &key) { file = locate("data", "LICENSES/ARTISTIC"); } - if (file.isEmpty() && !QFile::exists( key )) + if (file.isEmpty() && !TQFile::exists( key )) { if (!key.isEmpty()) m_license = key; @@ -209,12 +209,12 @@ void AboutDialog::setLicense(const QString &key) } -void AboutDialog::setPopulationText(const QString& a_text) +void AboutDialog::setPopulationText(const TQString& a_text) { KommanderWidget::setPopulationText(a_text); } -QString AboutDialog::populationText() const +TQString AboutDialog::populationText() const { return KommanderWidget::populationText(); } @@ -233,7 +233,7 @@ void AboutDialog::execute() } } -QString AboutDialog::handleDCOP(int function, const QStringList& args) +TQString AboutDialog::handleDCOP(int function, const TQStringList& args) { switch (function) { case Initialize: @@ -289,7 +289,7 @@ QString AboutDialog::handleDCOP(int function, const QStringList& args) default: return KommanderWidget::handleDCOP(function, args); } - return QString(); + return TQString(); } #include "aboutdialog.moc" |