summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/fontdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widgets/fontdialog.cpp')
-rw-r--r--kommander/widgets/fontdialog.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kommander/widgets/fontdialog.cpp b/kommander/widgets/fontdialog.cpp
index 432b2d7f..5fc17edc 100644
--- a/kommander/widgets/fontdialog.cpp
+++ b/kommander/widgets/fontdialog.cpp
@@ -28,32 +28,32 @@ enum Functions {
LastFunction
};
-FontDialog::FontDialog(QWidget *parent, const char *name)
- : QLabel(parent, name), KommanderWidget(this)
+FontDialog::FontDialog(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("kfontcombo", KIcon::NoGroup, KIcon::SizeMedium));
- setFrameStyle(QFrame::Box | QFrame::Plain);
+ setFrameStyle(TQFrame::Box | TQFrame::Plain);
setLineWidth(1);
setFixedSize(pixmap()->size());
}
else
setHidden(true);
KommanderPlugin::setDefaultGroup(Group::DCOP);
- KommanderPlugin::registerFunction(SetFont, "setFont(QString widget, QString family, int pointSize, bool bold, bool italic)",
+ KommanderPlugin::registerFunction(SetFont, "setFont(TQString widget, TQString family, int pointSize, bool bold, bool italic)",
i18n("Sets the default font for the dialog, by specifying the family, the size and other style options."), 2, 5);
- KommanderPlugin::registerFunction(Family, "family(QString widget)",
+ KommanderPlugin::registerFunction(Family, "family(TQString widget)",
i18n("Returns the font family."), 1);
- KommanderPlugin::registerFunction(PointSize, "pointSize(QString widget)",
+ KommanderPlugin::registerFunction(PointSize, "pointSize(TQString widget)",
i18n("Returns the font size in point."), 1);
- KommanderPlugin::registerFunction(Bold, "bold(QString widget)",
+ KommanderPlugin::registerFunction(Bold, "bold(TQString widget)",
i18n("Returns true, if the font is bold."), 1);
- KommanderPlugin::registerFunction(Italic, "italic(QString widget)",
+ KommanderPlugin::registerFunction(Italic, "italic(TQString widget)",
i18n("Returns true, if the font is italic."), 1);
}
@@ -61,9 +61,9 @@ FontDialog::~FontDialog()
{
}
-QString FontDialog::currentState() const
+TQString FontDialog::currentState() const
{
- return QString("default");
+ return TQString("default");
}
bool FontDialog::isKommanderWidget() const
@@ -71,27 +71,27 @@ bool FontDialog::isKommanderWidget() const
return true;
}
-QStringList FontDialog::associatedText() const
+TQStringList FontDialog::associatedText() const
{
return KommanderWidget::associatedText();
}
-void FontDialog::setAssociatedText(const QStringList& a_at)
+void FontDialog::setAssociatedText(const TQStringList& a_at)
{
KommanderWidget::setAssociatedText(a_at);
}
-void FontDialog::setWidgetText(const QString& a_text)
+void FontDialog::setWidgetText(const TQString& a_text)
{
KommanderWidget::setAssociatedText(a_text);
}
-void FontDialog::setPopulationText(const QString& a_text)
+void FontDialog::setPopulationText(const TQString& a_text)
{
KommanderWidget::setPopulationText(a_text);
}
-QString FontDialog::populationText() const
+TQString FontDialog::populationText() const
{
return KommanderWidget::populationText();
}
@@ -106,7 +106,7 @@ bool FontDialog::isFunctionSupported(int f)
return (f > FirstFunction && f < LastFunction) || f == DCOP::execute;
}
-QString FontDialog::handleDCOP(int function, const QStringList& args)
+TQString FontDialog::handleDCOP(int function, const TQStringList& args)
{
switch (function) {
case SetFont:
@@ -127,7 +127,7 @@ QString FontDialog::handleDCOP(int function, const QStringList& args)
}
case PointSize:
{
- return QString::number(m_font.pointSize());
+ return TQString::number(m_font.pointSize());
break;
}
case Bold:
@@ -150,7 +150,7 @@ QString FontDialog::handleDCOP(int function, const QStringList& args)
default:
return KommanderWidget::handleDCOP(function, args);
}
- return QString();
+ return TQString();
}