diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /knode/kngrouppropdlg.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knode/kngrouppropdlg.cpp')
-rw-r--r-- | knode/kngrouppropdlg.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/knode/kngrouppropdlg.cpp b/knode/kngrouppropdlg.cpp index b93669374..3ad2fee7a 100644 --- a/knode/kngrouppropdlg.cpp +++ b/knode/kngrouppropdlg.cpp @@ -12,10 +12,10 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US */ -#include <qgroupbox.h> -#include <qlayout.h> -#include <qvbox.h> -#include <qcheckbox.h> +#include <tqgroupbox.h> +#include <tqlayout.h> +#include <tqvbox.h> +#include <tqcheckbox.h> #include <klocale.h> #include <klineedit.h> @@ -26,10 +26,10 @@ #include "utilities.h" #include "kngroup.h" #include "kngrouppropdlg.h" -#include <qlabel.h> +#include <tqlabel.h> -KNGroupPropDlg::KNGroupPropDlg(KNGroup *group, QWidget *parent, const char *name ) +KNGroupPropDlg::KNGroupPropDlg(KNGroup *group, TQWidget *parent, const char *name ) : KDialogBase(Tabbed, i18n("Properties of %1").arg(group->groupname()), Ok|Cancel|Help, Ok, parent, name), g_rp(group), n_ickChanged(false) @@ -37,57 +37,57 @@ KNGroupPropDlg::KNGroupPropDlg(KNGroup *group, QWidget *parent, const char *name // General tab =============================================== - QWidget *page = addPage(i18n("&General")); - QVBoxLayout *pageL = new QVBoxLayout(page, 3); + TQWidget *page = addPage(i18n("&General")); + TQVBoxLayout *pageL = new TQVBoxLayout(page, 3); // settings - QGroupBox *gb=new QGroupBox(i18n("Settings"), page); + TQGroupBox *gb=new TQGroupBox(i18n("Settings"), page); pageL->addWidget(gb); - QGridLayout *grpL=new QGridLayout(gb, 3, 3, 15, 5); + TQGridLayout *grpL=new TQGridLayout(gb, 3, 3, 15, 5); grpL->addRowSpacing(0, fontMetrics().lineSpacing()-9); n_ick=new KLineEdit(gb); if (g_rp->hasName()) n_ick->setText(g_rp->name()); - QLabel *l=new QLabel(n_ick, i18n("&Nickname:"), gb); + TQLabel *l=new TQLabel(n_ick, i18n("&Nickname:"), gb); grpL->addWidget(l,1,0); grpL->addMultiCellWidget(n_ick,1,1,1,2); - u_seCharset=new QCheckBox(i18n("&Use different default charset:"), gb); + u_seCharset=new TQCheckBox(i18n("&Use different default charset:"), gb); u_seCharset->setChecked(g_rp->useCharset()); grpL->addMultiCellWidget(u_seCharset,2,2,0,1); - c_harset=new QComboBox(false, gb); + c_harset=new TQComboBox(false, gb); c_harset->insertStringList(knGlobals.configManager()->postNewsTechnical()->composerCharsets()); c_harset->setCurrentItem(knGlobals.configManager()->postNewsTechnical()->indexForCharset(g_rp->defaultCharset())); c_harset->setEnabled(g_rp->useCharset()); - connect(u_seCharset, SIGNAL(toggled(bool)), c_harset, SLOT(setEnabled(bool))); + connect(u_seCharset, TQT_SIGNAL(toggled(bool)), c_harset, TQT_SLOT(setEnabled(bool))); grpL->addWidget(c_harset, 2,2); grpL->setColStretch(1,1); grpL->setColStretch(2,2); // group name & description - gb=new QGroupBox(i18n("Description"), page); + gb=new TQGroupBox(i18n("Description"), page); pageL->addWidget(gb); - grpL=new QGridLayout(gb, 4, 3, 15, 5); + grpL=new TQGridLayout(gb, 4, 3, 15, 5); grpL->addRowSpacing(0, fontMetrics().lineSpacing()-9); - l=new QLabel(i18n("Name:"), gb); + l=new TQLabel(i18n("Name:"), gb); grpL->addWidget(l,1,0); - l=new QLabel(group->groupname(),gb); + l=new TQLabel(group->groupname(),gb); grpL->addWidget(l,1,2); - l=new QLabel(i18n("Description:"), gb); + l=new TQLabel(i18n("Description:"), gb); grpL->addWidget(l,2,0); - l=new QLabel(g_rp->description(),gb); + l=new TQLabel(g_rp->description(),gb); grpL->addWidget(l,2,2); - l=new QLabel(i18n("Status:"), gb); + l=new TQLabel(i18n("Status:"), gb); grpL->addWidget(l,3,0); - QString status; + TQString status; switch (g_rp->status()) { case KNGroup::unknown: status=i18n("unknown"); break; @@ -98,42 +98,42 @@ KNGroupPropDlg::KNGroupPropDlg(KNGroup *group, QWidget *parent, const char *name case KNGroup::moderated: status=i18n("moderated"); break; } - l=new QLabel(status,gb); + l=new TQLabel(status,gb); grpL->addWidget(l,3,2); grpL->addColSpacing(1,20); grpL->setColStretch(2,1); // statistics - gb=new QGroupBox(i18n("Statistics"), page); + gb=new TQGroupBox(i18n("Statistics"), page); pageL->addWidget(gb); - grpL=new QGridLayout(gb, 6, 3, 15, 5); + grpL=new TQGridLayout(gb, 6, 3, 15, 5); grpL->addRowSpacing(0, fontMetrics().lineSpacing()-9); - l=new QLabel(i18n("Articles:"), gb); + l=new TQLabel(i18n("Articles:"), gb); grpL->addWidget(l,1,0); - l=new QLabel(QString::number(g_rp->count()),gb); + l=new TQLabel(TQString::number(g_rp->count()),gb); grpL->addWidget(l,1,2); - l=new QLabel(i18n("Unread articles:"), gb); + l=new TQLabel(i18n("Unread articles:"), gb); grpL->addWidget(l,2,0); - l=new QLabel(QString::number(g_rp->count()-g_rp->readCount()),gb); + l=new TQLabel(TQString::number(g_rp->count()-g_rp->readCount()),gb); grpL->addWidget(l,2,2); - l=new QLabel(i18n("New articles:"), gb); + l=new TQLabel(i18n("New articles:"), gb); grpL->addWidget(l,3,0); - l=new QLabel(QString::number(g_rp->newCount()),gb); + l=new TQLabel(TQString::number(g_rp->newCount()),gb); grpL->addWidget(l,3,2); - l=new QLabel(i18n("Threads with unread articles:"), gb); + l=new TQLabel(i18n("Threads with unread articles:"), gb); grpL->addWidget(l,4,0); - l=new QLabel(QString::number(g_rp->statThrWithUnread()),gb); + l=new TQLabel(TQString::number(g_rp->statThrWithUnread()),gb); grpL->addWidget(l,4,2); - l=new QLabel(i18n("Threads with new articles:"), gb); + l=new TQLabel(i18n("Threads with new articles:"), gb); grpL->addWidget(l,5,0); - l=new QLabel(QString::number(g_rp->statThrWithNew()),gb); + l=new TQLabel(TQString::number(g_rp->statThrWithNew()),gb); grpL->addWidget(l,5,2); grpL->addColSpacing(1,20); @@ -145,8 +145,8 @@ KNGroupPropDlg::KNGroupPropDlg(KNGroup *group, QWidget *parent, const char *name i_dWidget=new KNConfig::IdentityWidget(g_rp->identity(), addVBoxPage(i18n("&Identity"))); // per server cleanup configuration - QFrame* cleanupPage = addPage( i18n("&Cleanup") ); - QVBoxLayout *cleanupLayout = new QVBoxLayout( cleanupPage, KDialog::spacingHint() ); + TQFrame* cleanupPage = addPage( i18n("&Cleanup") ); + TQVBoxLayout *cleanupLayout = new TQVBoxLayout( cleanupPage, KDialog::spacingHint() ); mCleanupWidget = new KNConfig::GroupCleanupWidget( g_rp->cleanupConfig(), cleanupPage ); mCleanupWidget->load(); cleanupLayout->addWidget( mCleanupWidget ); |