summaryrefslogtreecommitdiffstats
path: root/knode/knconfigwidgets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knode/knconfigwidgets.cpp')
-rw-r--r--knode/knconfigwidgets.cpp808
1 files changed, 404 insertions, 404 deletions
diff --git a/knode/knconfigwidgets.cpp b/knode/knconfigwidgets.cpp
index 72d8f366c..91fba601e 100644
--- a/knode/knconfigwidgets.cpp
+++ b/knode/knconfigwidgets.cpp
@@ -13,10 +13,10 @@
*/
-#include <qvbox.h>
-#include <qpainter.h>
-#include <qwhatsthis.h>
-#include <qlabel.h>
+#include <tqvbox.h>
+#include <tqpainter.h>
+#include <tqwhatsthis.h>
+#include <tqlabel.h>
#include <klocale.h>
#include <knumvalidator.h>
@@ -50,128 +50,128 @@
#include <kpgp.h>
-KNConfig::IdentityWidget::IdentityWidget( Identity *d, QWidget *p, const char *n ) :
+KNConfig::IdentityWidget::IdentityWidget( Identity *d, TQWidget *p, const char *n ) :
KCModule( p, n ),
d_ata( d )
{
- QString msg;
+ TQString msg;
- QGridLayout *topL=new QGridLayout(this, 11, 3, 5,5);
+ TQGridLayout *topL=new TQGridLayout(this, 11, 3, 5,5);
n_ame=new KLineEdit(this);
- QLabel *l=new QLabel(n_ame, i18n("&Name:"), this);
+ TQLabel *l=new TQLabel(n_ame, i18n("&Name:"), this);
topL->addWidget(l, 0,0);
topL->addMultiCellWidget(n_ame, 0,0, 1,2);
msg = i18n("<qt><p>Your name as it will appear to others reading your articles.</p>"
"<p>Ex: <b>John Stuart Masterson III</b>.</p></qt>");
- QWhatsThis::add( n_ame, msg );
- QWhatsThis::add( l, msg );
- connect( n_ame, SIGNAL(textChanged(const QString&)), SLOT(changed()) );
+ TQWhatsThis::add( n_ame, msg );
+ TQWhatsThis::add( l, msg );
+ connect( n_ame, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(changed()) );
o_rga=new KLineEdit(this);
- l=new QLabel(o_rga, i18n("Organi&zation:"), this);
+ l=new TQLabel(o_rga, i18n("Organi&zation:"), this);
topL->addWidget(l, 1,0);
topL->addMultiCellWidget(o_rga, 1,1, 1,2);
msg = i18n( "<qt><p>The name of the organization you work for.</p>"
"<p>Ex: <b>KNode, Inc</b>.</p></qt>" );
- QWhatsThis::add( o_rga, msg );
- QWhatsThis::add( l, msg );
- connect( o_rga, SIGNAL(textChanged(const QString&)), SLOT(changed()) );
+ TQWhatsThis::add( o_rga, msg );
+ TQWhatsThis::add( l, msg );
+ connect( o_rga, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(changed()) );
e_mail=new KLineEdit(this);
- l=new QLabel(e_mail, i18n("Email a&ddress:"), this);
+ l=new TQLabel(e_mail, i18n("Email a&ddress:"), this);
topL->addWidget(l, 2,0);
topL->addMultiCellWidget(e_mail, 2,2, 1,2);
msg = i18n( "<qt><p>Your email address as it will appear to others "
"reading your articles</p><p>Ex: <b>nospam@please.com</b>.</qt>" );
- QWhatsThis::add( l, msg );
- QWhatsThis::add( e_mail, msg );
- connect( e_mail, SIGNAL(textChanged(const QString&)), SLOT(changed()) );
+ TQWhatsThis::add( l, msg );
+ TQWhatsThis::add( e_mail, msg );
+ connect( e_mail, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(changed()) );
r_eplyTo=new KLineEdit(this);
- l=new QLabel(r_eplyTo, i18n("&Reply-to address:"), this);
+ l=new TQLabel(r_eplyTo, i18n("&Reply-to address:"), this);
topL->addWidget(l, 3,0);
topL->addMultiCellWidget(r_eplyTo, 3,3, 1,2);
msg = i18n( "<qt><p>When someone reply to your article by email, this is the address the message "
"will be sent. If you fill in this field, please do it with a real "
"email address.</p><p>Ex: <b>john@example.com</b>.</p></qt>" );
- QWhatsThis::add( l, msg );
- QWhatsThis::add( r_eplyTo, msg );
- connect( r_eplyTo, SIGNAL(textChanged(const QString&)), SLOT(changed()) );
+ TQWhatsThis::add( l, msg );
+ TQWhatsThis::add( r_eplyTo, msg );
+ connect( r_eplyTo, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(changed()) );
m_ailCopiesTo=new KLineEdit(this);
- l=new QLabel(m_ailCopiesTo, i18n("&Mail-copies-to:"), this);
+ l=new TQLabel(m_ailCopiesTo, i18n("&Mail-copies-to:"), this);
topL->addWidget(l, 4,0);
topL->addMultiCellWidget(m_ailCopiesTo, 4,4, 1,2);
- connect( m_ailCopiesTo, SIGNAL(textChanged(const QString&)), SLOT(changed()) );
+ connect( m_ailCopiesTo, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(changed()) );
s_igningKey = new Kpgp::SecretKeyRequester(this);
s_igningKey->dialogButton()->setText(i18n("Chan&ge..."));
s_igningKey->setDialogCaption(i18n("Your OpenPGP Key"));
s_igningKey->setDialogMessage(i18n("Select the OpenPGP key which should be "
"used for signing articles."));
- l=new QLabel(s_igningKey, i18n("Signing ke&y:"), this);
+ l=new TQLabel(s_igningKey, i18n("Signing ke&y:"), this);
topL->addWidget(l, 5,0);
topL->addMultiCellWidget(s_igningKey, 5,5, 1,2);
msg = i18n("<qt><p>The OpenPGP key you choose here will be "
"used to sign your articles.</p></qt>");
- QWhatsThis::add( l, msg );
- QWhatsThis::add( s_igningKey, msg );
- connect( s_igningKey, SIGNAL(changed()), SLOT(changed()) );
+ TQWhatsThis::add( l, msg );
+ TQWhatsThis::add( s_igningKey, msg );
+ connect( s_igningKey, TQT_SIGNAL(changed()), TQT_SLOT(changed()) );
- b_uttonGroup = new QButtonGroup(this);
- connect( b_uttonGroup, SIGNAL(clicked(int)),
- this, SLOT(slotSignatureType(int)) );
+ b_uttonGroup = new TQButtonGroup(this);
+ connect( b_uttonGroup, TQT_SIGNAL(clicked(int)),
+ this, TQT_SLOT(slotSignatureType(int)) );
b_uttonGroup->setExclusive(true);
b_uttonGroup->hide();
- s_igFile = new QRadioButton( i18n("&Use a signature from file"), this );
+ s_igFile = new TQRadioButton( i18n("&Use a signature from file"), this );
b_uttonGroup->insert(s_igFile, 0);
topL->addMultiCellWidget(s_igFile, 6, 6, 0, 2);
- QWhatsThis::add( s_igFile,
+ TQWhatsThis::add( s_igFile,
i18n( "<qt><p>Mark this to let KNode read the signature from a file.</p></qt>" ) );
s_ig = new KLineEdit(this);
- f_ileName = new QLabel(s_ig, i18n("Signature &file:"), this);
+ f_ileName = new TQLabel(s_ig, i18n("Signature &file:"), this);
topL->addWidget(f_ileName, 7, 0 );
topL->addWidget(s_ig, 7, 1 );
c_ompletion = new KURLCompletion();
s_ig->setCompletionObject(c_ompletion);
msg = i18n( "<qt><p>The file from which the signature will be read.</p>"
"<p>Ex: <b>/home/robt/.sig</b>.</p></qt>" );
- QWhatsThis::add( f_ileName, msg );
- QWhatsThis::add( s_ig, msg );
+ TQWhatsThis::add( f_ileName, msg );
+ TQWhatsThis::add( s_ig, msg );
- c_hooseBtn = new QPushButton( i18n("Choo&se..."), this);
- connect(c_hooseBtn, SIGNAL(clicked()),
- this, SLOT(slotSignatureChoose()));
+ c_hooseBtn = new TQPushButton( i18n("Choo&se..."), this);
+ connect(c_hooseBtn, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotSignatureChoose()));
topL->addWidget(c_hooseBtn, 7, 2 );
- e_ditBtn = new QPushButton( i18n("&Edit File"), this);
- connect(e_ditBtn, SIGNAL(clicked()),
- this, SLOT(slotSignatureEdit()));
+ e_ditBtn = new TQPushButton( i18n("&Edit File"), this);
+ connect(e_ditBtn, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotSignatureEdit()));
topL->addWidget(e_ditBtn, 8, 2);
- s_igGenerator = new QCheckBox(i18n("&The file is a program"), this);
+ s_igGenerator = new TQCheckBox(i18n("&The file is a program"), this);
topL->addMultiCellWidget(s_igGenerator, 8, 8, 0, 1);
msg = i18n( "<qt><p>Mark this option if the signature will be generated by a program</p>"
"<p>Ex: <b>/home/robt/gensig.sh</b>.</p></qt>" );
- QWhatsThis::add( s_igGenerator, msg );
- connect( s_igGenerator, SIGNAL(toggled(bool)), SLOT(changed()) );
+ TQWhatsThis::add( s_igGenerator, msg );
+ connect( s_igGenerator, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()) );
- s_igEdit = new QRadioButton( i18n("Specify signature &below"), this);
+ s_igEdit = new TQRadioButton( i18n("Specify signature &below"), this);
b_uttonGroup->insert(s_igEdit, 1);
topL->addMultiCellWidget(s_igEdit, 9, 9, 0, 2);
- s_igEditor = new QTextEdit(this);
+ s_igEditor = new TQTextEdit(this);
s_igEditor->setTextFormat(Qt::PlainText);
topL->addMultiCellWidget(s_igEditor, 10, 10, 0, 2);
- connect( s_igEditor, SIGNAL(textChanged()), SLOT(changed()) );
+ connect( s_igEditor, TQT_SIGNAL(textChanged()), TQT_SLOT(changed()) );
topL->setColStretch(1,1);
topL->setRowStretch(7,1);
- topL->setResizeMode(QLayout::Minimum);
- connect(s_ig,SIGNAL(textChanged ( const QString & )),
- this,SLOT(textFileNameChanged(const QString &)));
+ topL->setResizeMode(TQLayout::Minimum);
+ connect(s_ig,TQT_SIGNAL(textChanged ( const TQString & )),
+ this,TQT_SLOT(textFileNameChanged(const TQString &)));
load();
}
@@ -182,7 +182,7 @@ KNConfig::IdentityWidget::~IdentityWidget()
delete c_ompletion;
}
-void KNConfig::IdentityWidget::textFileNameChanged(const QString &text)
+void KNConfig::IdentityWidget::textFileNameChanged(const TQString &text)
{
e_ditBtn->setEnabled(!text.isEmpty());
emit changed( true );
@@ -242,7 +242,7 @@ void KNConfig::IdentityWidget::slotSignatureType(int type)
void KNConfig::IdentityWidget::slotSignatureChoose()
{
- QString tmp=KFileDialog::getOpenFileName(c_ompletion->replacedPath(s_ig->text()),QString::null,this,i18n("Choose Signature"));
+ TQString tmp=KFileDialog::getOpenFileName(c_ompletion->replacedPath(s_ig->text()),TQString::null,this,i18n("Choose Signature"));
if(!tmp.isEmpty()) s_ig->setText(tmp);
emit changed( true );
}
@@ -250,14 +250,14 @@ void KNConfig::IdentityWidget::slotSignatureChoose()
void KNConfig::IdentityWidget::slotSignatureEdit()
{
- QString fileName = c_ompletion->replacedPath(s_ig->text()).stripWhiteSpace();
+ TQString fileName = c_ompletion->replacedPath(s_ig->text()).stripWhiteSpace();
if (fileName.isEmpty()) {
KMessageBox::sorry(this, i18n("You must specify a filename."));
return;
}
- QFileInfo fileInfo( fileName );
+ TQFileInfo fileInfo( fileName );
if (fileInfo.isDir()) {
KMessageBox::sorry(this, i18n("You have specified a folder."));
return;
@@ -279,42 +279,42 @@ void KNConfig::IdentityWidget::slotSignatureEdit()
//BEGIN: NNTP account configuration widgets ----------------------------------
-KNConfig::NntpAccountListWidget::NntpAccountListWidget(QWidget *p, const char *n) :
+KNConfig::NntpAccountListWidget::NntpAccountListWidget(TQWidget *p, const char *n) :
KCModule( p, n ),
a_ccManager( knGlobals.accountManager() )
{
p_ixmap = SmallIcon("server");
- QGridLayout *topL=new QGridLayout(this, 6,2, 5,5);
+ TQGridLayout *topL=new TQGridLayout(this, 6,2, 5,5);
// account listbox
l_box=new KNDialogListBox(false, this);
- connect(l_box, SIGNAL(selected(int)), this, SLOT(slotItemSelected(int)));
- connect(l_box, SIGNAL(selectionChanged()), this, SLOT(slotSelectionChanged()));
+ connect(l_box, TQT_SIGNAL(selected(int)), this, TQT_SLOT(slotItemSelected(int)));
+ connect(l_box, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotSelectionChanged()));
topL->addMultiCellWidget(l_box, 0,4, 0,0);
// info box
- QGroupBox *gb = new QGroupBox(2,Qt::Vertical,QString::null,this);
+ TQGroupBox *gb = new TQGroupBox(2,Qt::Vertical,TQString::null,this);
topL->addWidget(gb,5,0);
- s_erverInfo = new QLabel(gb);
- p_ortInfo = new QLabel(gb);
+ s_erverInfo = new TQLabel(gb);
+ p_ortInfo = new TQLabel(gb);
// buttons
- a_ddBtn=new QPushButton(i18n("&Add..."), this);
- connect(a_ddBtn, SIGNAL(clicked()), this, SLOT(slotAddBtnClicked()));
+ a_ddBtn=new TQPushButton(i18n("&Add..."), this);
+ connect(a_ddBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddBtnClicked()));
topL->addWidget(a_ddBtn, 0,1);
- e_ditBtn=new QPushButton(i18n("modify something","&Edit..."), this);
- connect(e_ditBtn, SIGNAL(clicked()), this, SLOT(slotEditBtnClicked()));
+ e_ditBtn=new TQPushButton(i18n("modify something","&Edit..."), this);
+ connect(e_ditBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditBtnClicked()));
topL->addWidget(e_ditBtn, 1,1);
- d_elBtn=new QPushButton(i18n("&Delete"), this);
- connect(d_elBtn, SIGNAL(clicked()), this, SLOT(slotDelBtnClicked()));
+ d_elBtn=new TQPushButton(i18n("&Delete"), this);
+ connect(d_elBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDelBtnClicked()));
topL->addWidget(d_elBtn, 2,1);
- s_ubBtn=new QPushButton(i18n("&Subscribe..."), this);
- connect(s_ubBtn, SIGNAL(clicked()), this, SLOT(slotSubBtnClicked()));
+ s_ubBtn=new TQPushButton(i18n("&Subscribe..."), this);
+ connect(s_ubBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSubBtnClicked()));
topL->addWidget(s_ubBtn, 3,1);
topL->setRowStretch(4,1); // stretch the server listbox
@@ -323,9 +323,9 @@ KNConfig::NntpAccountListWidget::NntpAccountListWidget(QWidget *p, const char *n
// the settings dialog is non-modal, so we have to react to changes
// made outside of the dialog
- connect(a_ccManager, SIGNAL(accountAdded(KNNntpAccount*)), this, SLOT(slotAddItem(KNNntpAccount*)));
- connect(a_ccManager, SIGNAL(accountRemoved(KNNntpAccount*)), this, SLOT(slotRemoveItem(KNNntpAccount*)));
- connect(a_ccManager, SIGNAL(accountModified(KNNntpAccount*)), this, SLOT(slotUpdateItem(KNNntpAccount*)));
+ connect(a_ccManager, TQT_SIGNAL(accountAdded(KNNntpAccount*)), this, TQT_SLOT(slotAddItem(KNNntpAccount*)));
+ connect(a_ccManager, TQT_SIGNAL(accountRemoved(KNNntpAccount*)), this, TQT_SLOT(slotRemoveItem(KNNntpAccount*)));
+ connect(a_ccManager, TQT_SIGNAL(accountModified(KNNntpAccount*)), this, TQT_SLOT(slotUpdateItem(KNNntpAccount*)));
slotSelectionChanged(); // disable Delete & Edit initially
}
@@ -339,7 +339,7 @@ KNConfig::NntpAccountListWidget::~NntpAccountListWidget()
void KNConfig::NntpAccountListWidget::load()
{
l_box->clear();
- QValueList<KNNntpAccount*>::Iterator it;
+ TQValueList<KNNntpAccount*>::Iterator it;
for ( it = a_ccManager->begin(); it != a_ccManager->end(); ++it )
slotAddItem( *it );
}
@@ -460,67 +460,67 @@ void KNConfig::NntpAccountListWidget::slotSubBtnClicked()
//=======================================================================================
-KNConfig::NntpAccountConfDialog::NntpAccountConfDialog(KNNntpAccount *a, QWidget *p, const char *n)
+KNConfig::NntpAccountConfDialog::NntpAccountConfDialog(KNNntpAccount *a, TQWidget *p, const char *n)
: KDialogBase(Tabbed, (a->id()!=-1)? i18n("Properties of %1").arg(a->name()):i18n("New Account"),
Ok|Cancel|Help, Ok, p, n),
a_ccount(a)
{
- QFrame* page=addPage(i18n("Ser&ver"));
- QGridLayout *topL=new QGridLayout(page, 11, 3, 5);
+ TQFrame* page=addPage(i18n("Ser&ver"));
+ TQGridLayout *topL=new TQGridLayout(page, 11, 3, 5);
n_ame=new KLineEdit(page);
- QLabel *l=new QLabel(n_ame,i18n("&Name:"),page);
+ TQLabel *l=new TQLabel(n_ame,i18n("&Name:"),page);
topL->addWidget(l, 0,0);
n_ame->setText(a->name());
topL->addMultiCellWidget(n_ame, 0, 0, 1, 2);
s_erver=new KLineEdit(page);
- l=new QLabel(s_erver,i18n("&Server:"), page);
+ l=new TQLabel(s_erver,i18n("&Server:"), page);
s_erver->setText(a->server());
topL->addWidget(l, 1,0);
topL->addMultiCellWidget(s_erver, 1, 1, 1, 2);
p_ort=new KLineEdit(page);
- l=new QLabel(p_ort, i18n("&Port:"), page);
+ l=new TQLabel(p_ort, i18n("&Port:"), page);
p_ort->setValidator(new KIntValidator(0,65536,this));
- p_ort->setText(QString::number(a->port()));
+ p_ort->setText(TQString::number(a->port()));
topL->addWidget(l, 2,0);
topL->addWidget(p_ort, 2,1);
h_old = new KIntSpinBox(5,1800,5,5,10,page);
- l = new QLabel(h_old,i18n("Hol&d connection for:"), page);
+ l = new TQLabel(h_old,i18n("Hol&d connection for:"), page);
h_old->setSuffix(i18n(" sec"));
h_old->setValue(a->hold());
topL->addWidget(l,3,0);
topL->addWidget(h_old,3,1);
t_imeout = new KIntSpinBox(15,600,5,15,10,page);
- l = new QLabel(t_imeout, i18n("&Timeout:"), page);
+ l = new TQLabel(t_imeout, i18n("&Timeout:"), page);
t_imeout->setValue(a->timeout());
t_imeout->setSuffix(i18n(" sec"));
topL->addWidget(l,4,0);
topL->addWidget(t_imeout,4,1);
- f_etchDes=new QCheckBox(i18n("&Fetch group descriptions"), page);
+ f_etchDes=new TQCheckBox(i18n("&Fetch group descriptions"), page);
f_etchDes->setChecked(a->fetchDescriptions());
topL->addMultiCellWidget(f_etchDes, 5,5, 0,3);
- /*u_seDiskCache=new QCheckBox(i18n("&Cache articles on disk"), page);
+ /*u_seDiskCache=new TQCheckBox(i18n("&Cache articles on disk"), page);
u_seDiskCache->setChecked(a->useDiskCache());
topL->addMultiCellWidget(u_seDiskCache, 6,6, 0,3);*/
- a_uth=new QCheckBox(i18n("Server requires &authentication"), page);
- connect(a_uth, SIGNAL(toggled(bool)), this, SLOT(slotAuthChecked(bool)));
+ a_uth=new TQCheckBox(i18n("Server requires &authentication"), page);
+ connect(a_uth, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotAuthChecked(bool)));
topL->addMultiCellWidget(a_uth, 6,6, 0,3);
u_ser=new KLineEdit(page);
- u_serLabel=new QLabel(u_ser,i18n("&User:"), page);
+ u_serLabel=new TQLabel(u_ser,i18n("&User:"), page);
u_ser->setText(a->user());
topL->addWidget(u_serLabel, 7,0);
topL->addMultiCellWidget(u_ser, 7,7, 1,2);
p_ass=new KLineEdit(page);
- p_assLabel=new QLabel(p_ass, i18n("Pass&word:"), page);
+ p_assLabel=new TQLabel(p_ass, i18n("Pass&word:"), page);
p_ass->setEchoMode(KLineEdit::Password);
if ( a->readyForLogin() )
p_ass->setText(a->pass());
@@ -530,12 +530,12 @@ KNConfig::NntpAccountConfDialog::NntpAccountConfDialog(KNNntpAccount *a, QWidget
topL->addWidget(p_assLabel, 8,0);
topL->addMultiCellWidget(p_ass, 8,8, 1,2);
- i_nterval=new QCheckBox(i18n("Enable &interval news checking"), page);
- connect(i_nterval, SIGNAL(toggled(bool)), this, SLOT(slotIntervalChecked(bool)));
+ i_nterval=new TQCheckBox(i18n("Enable &interval news checking"), page);
+ connect(i_nterval, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotIntervalChecked(bool)));
topL->addMultiCellWidget(i_nterval, 9,9, 0,3);
c_heckInterval=new KIntSpinBox(1,10000,1,1,10,page);
- c_heckIntervalLabel=new QLabel(c_heckInterval, i18n("Check inter&val:"), page);
+ c_heckIntervalLabel=new TQLabel(c_heckInterval, i18n("Check inter&val:"), page);
c_heckInterval->setSuffix(i18n(" min") );
c_heckInterval->setValue(a->checkInterval());
c_heckIntervalLabel->setBuddy(c_heckInterval);
@@ -552,14 +552,14 @@ KNConfig::NntpAccountConfDialog::NntpAccountConfDialog(KNNntpAccount *a, QWidget
i_dWidget=new KNConfig::IdentityWidget(a->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 GroupCleanupWidget( a->cleanupConfig(), cleanupPage );
mCleanupWidget->load();
cleanupLayout->addWidget( mCleanupWidget );
cleanupLayout->addStretch( 1 );
- connect( knGlobals.accountManager(), SIGNAL(passwordsChanged()), SLOT(slotPasswordChanged()) );
+ connect( knGlobals.accountManager(), TQT_SIGNAL(passwordsChanged()), TQT_SLOT(slotPasswordChanged()) );
KNHelper::restoreWindowSize("accNewsPropDLG", this, sizeHint());
@@ -629,11 +629,11 @@ void KNConfig::NntpAccountConfDialog::slotPasswordChanged()
//=============================================================================================
-KNConfig::SmtpAccountWidget::SmtpAccountWidget( QWidget *p, const char *n ) :
+KNConfig::SmtpAccountWidget::SmtpAccountWidget( TQWidget *p, const char *n ) :
SmtpAccountWidgetBase( p, n )
{
mAccount = knGlobals.accountManager()->smtp();
- connect( knGlobals.accountManager(), SIGNAL(passwordsChanged()), SLOT(slotPasswordChanged()) );
+ connect( knGlobals.accountManager(), TQT_SIGNAL(passwordsChanged()), TQT_SLOT(slotPasswordChanged()) );
load();
}
@@ -731,8 +731,8 @@ void KNConfig::SmtpAccountWidget::slotPasswordChanged()
//===================================================================================
// code taken from KMail, Copyright (C) 2000 Espen Sand, espen@kde.org
-KNConfig::AppearanceWidget::ColorListItem::ColorListItem( const QString &text, const QColor &color )
- : QListBoxText(text), mColor( color )
+KNConfig::AppearanceWidget::ColorListItem::ColorListItem( const TQString &text, const TQColor &color )
+ : TQListBoxText(text), mColor( color )
{
}
@@ -742,9 +742,9 @@ KNConfig::AppearanceWidget::ColorListItem::~ColorListItem()
}
-void KNConfig::AppearanceWidget::ColorListItem::paint( QPainter *p )
+void KNConfig::AppearanceWidget::ColorListItem::paint( TQPainter *p )
{
- QFontMetrics fm = p->fontMetrics();
+ TQFontMetrics fm = p->fontMetrics();
int h = fm.height();
p->drawText( 30+3*2, fm.ascent() + fm.leading()/2, text() );
@@ -755,13 +755,13 @@ void KNConfig::AppearanceWidget::ColorListItem::paint( QPainter *p )
}
-int KNConfig::AppearanceWidget::ColorListItem::height(const QListBox *lb ) const
+int KNConfig::AppearanceWidget::ColorListItem::height(const TQListBox *lb ) const
{
return( lb->fontMetrics().lineSpacing()+1 );
}
-int KNConfig::AppearanceWidget::ColorListItem::width(const QListBox *lb ) const
+int KNConfig::AppearanceWidget::ColorListItem::width(const TQListBox *lb ) const
{
return( 30 + lb->fontMetrics().width( text() ) + 6 );
}
@@ -770,10 +770,10 @@ int KNConfig::AppearanceWidget::ColorListItem::width(const QListBox *lb ) const
//===================================================================================
-KNConfig::AppearanceWidget::FontListItem::FontListItem( const QString &name, const QFont &font )
- : QListBoxText(name), f_ont(font)
+KNConfig::AppearanceWidget::FontListItem::FontListItem( const TQString &name, const TQFont &font )
+ : TQListBoxText(name), f_ont(font)
{
- fontInfo = QString("[%1 %2]").arg(f_ont.family()).arg(f_ont.pointSize());
+ fontInfo = TQString("[%1 %2]").arg(f_ont.family()).arg(f_ont.pointSize());
}
@@ -782,28 +782,28 @@ KNConfig::AppearanceWidget::FontListItem::~FontListItem()
}
-void KNConfig::AppearanceWidget::FontListItem::setFont(const QFont &font)
+void KNConfig::AppearanceWidget::FontListItem::setFont(const TQFont &font)
{
f_ont = font;
- fontInfo = QString("[%1 %2]").arg(f_ont.family()).arg(f_ont.pointSize());
+ fontInfo = TQString("[%1 %2]").arg(f_ont.family()).arg(f_ont.pointSize());
}
-void KNConfig::AppearanceWidget::FontListItem::paint( QPainter *p )
+void KNConfig::AppearanceWidget::FontListItem::paint( TQPainter *p )
{
- QFont fnt = p->font();
- fnt.setWeight(QFont::Bold);
+ TQFont fnt = p->font();
+ fnt.setWeight(TQFont::Bold);
p->setFont(fnt);
int fontInfoWidth = p->fontMetrics().width(fontInfo);
int h = p->fontMetrics().ascent() + p->fontMetrics().leading()/2;
p->drawText(2, h, fontInfo );
- fnt.setWeight(QFont::Normal);
+ fnt.setWeight(TQFont::Normal);
p->setFont(fnt);
p->drawText(5 + fontInfoWidth, h, text() );
}
-int KNConfig::AppearanceWidget::FontListItem::width(const QListBox *lb ) const
+int KNConfig::AppearanceWidget::FontListItem::width(const TQListBox *lb ) const
{
return( lb->fontMetrics().width(fontInfo) + lb->fontMetrics().width(text()) + 20 );
}
@@ -812,38 +812,38 @@ int KNConfig::AppearanceWidget::FontListItem::width(const QListBox *lb ) const
//===================================================================================
-KNConfig::AppearanceWidget::AppearanceWidget( QWidget *p, const char *n ) :
+KNConfig::AppearanceWidget::AppearanceWidget( TQWidget *p, const char *n ) :
KCModule( p, n ),
d_ata( knGlobals.configManager()->appearance() )
{
- QGridLayout *topL=new QGridLayout(this, 8,2, 5,5);
+ TQGridLayout *topL=new TQGridLayout(this, 8,2, 5,5);
//color-list
c_List = new KNDialogListBox(false, this);
topL->addMultiCellWidget(c_List,1,3,0,0);
- connect(c_List, SIGNAL(selected(QListBoxItem*)),SLOT(slotColItemSelected(QListBoxItem*)));
- connect(c_List, SIGNAL(selectionChanged()), SLOT(slotColSelectionChanged()));
+ connect(c_List, TQT_SIGNAL(selected(TQListBoxItem*)),TQT_SLOT(slotColItemSelected(TQListBoxItem*)));
+ connect(c_List, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotColSelectionChanged()));
- c_olorCB = new QCheckBox(i18n("&Use custom colors"),this);
+ c_olorCB = new TQCheckBox(i18n("&Use custom colors"),this);
topL->addWidget(c_olorCB,0,0);
- connect(c_olorCB, SIGNAL(toggled(bool)), this, SLOT(slotColCheckBoxToggled(bool)));
+ connect(c_olorCB, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotColCheckBoxToggled(bool)));
- c_olChngBtn=new QPushButton(i18n("Cha&nge..."), this);
- connect(c_olChngBtn, SIGNAL(clicked()), this, SLOT(slotColChangeBtnClicked()));
+ c_olChngBtn=new TQPushButton(i18n("Cha&nge..."), this);
+ connect(c_olChngBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotColChangeBtnClicked()));
topL->addWidget(c_olChngBtn,1,1);
//font-list
f_List = new KNDialogListBox(false, this);
topL->addMultiCellWidget(f_List,5,7,0,0);
- connect(f_List, SIGNAL(selected(QListBoxItem*)),SLOT(slotFontItemSelected(QListBoxItem*)));
- connect(f_List, SIGNAL(selectionChanged()),SLOT(slotFontSelectionChanged()));
+ connect(f_List, TQT_SIGNAL(selected(TQListBoxItem*)),TQT_SLOT(slotFontItemSelected(TQListBoxItem*)));
+ connect(f_List, TQT_SIGNAL(selectionChanged()),TQT_SLOT(slotFontSelectionChanged()));
- f_ontCB = new QCheckBox(i18n("Use custom &fonts"),this);
+ f_ontCB = new TQCheckBox(i18n("Use custom &fonts"),this);
topL->addWidget(f_ontCB,4,0);
- connect(f_ontCB, SIGNAL(toggled(bool)), this, SLOT(slotFontCheckBoxToggled(bool)));
+ connect(f_ontCB, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotFontCheckBoxToggled(bool)));
- f_ntChngBtn=new QPushButton(i18n("Chang&e..."), this);
- connect(f_ntChngBtn, SIGNAL(clicked()), this, SLOT(slotFontChangeBtnClicked()));
+ f_ntChngBtn=new TQPushButton(i18n("Chang&e..."), this);
+ connect(f_ntChngBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFontChangeBtnClicked()));
topL->addWidget(f_ntChngBtn,5,1);
load();
@@ -920,11 +920,11 @@ void KNConfig::AppearanceWidget::slotColCheckBoxToggled(bool b)
// show color dialog for the entry
-void KNConfig::AppearanceWidget::slotColItemSelected(QListBoxItem *it)
+void KNConfig::AppearanceWidget::slotColItemSelected(TQListBoxItem *it)
{
if (it) {
ColorListItem *colorItem = static_cast<ColorListItem*>(it);
- QColor col = colorItem->color();
+ TQColor col = colorItem->color();
int result = KColorDialog::getColor(col,this);
if (result == KColorDialog::Accepted) {
@@ -959,11 +959,11 @@ void KNConfig::AppearanceWidget::slotFontCheckBoxToggled(bool b)
// show font dialog for the entry
-void KNConfig::AppearanceWidget::slotFontItemSelected(QListBoxItem *it)
+void KNConfig::AppearanceWidget::slotFontItemSelected(TQListBoxItem *it)
{
if (it) {
FontListItem *fontItem = static_cast<FontListItem*>(it);
- QFont font = fontItem->font();
+ TQFont font = fontItem->font();
int result = KFontDialog::getFont(font,false,this);
if (result == KFontDialog::Accepted) {
@@ -991,42 +991,42 @@ void KNConfig::AppearanceWidget::slotFontSelectionChanged()
//=============================================================================================
-KNConfig::ReadNewsGeneralWidget::ReadNewsGeneralWidget( ReadNewsGeneral *d, QWidget *p, const char *n ) :
+KNConfig::ReadNewsGeneralWidget::ReadNewsGeneralWidget( ReadNewsGeneral *d, TQWidget *p, const char *n ) :
KCModule( p, n ),
d_ata( d )
{
- QGroupBox *hgb=new QGroupBox(i18n("Article Handling"), this);
- QGroupBox *lgb=new QGroupBox(i18n("Article List"), this);
- QGroupBox *cgb=new QGroupBox(i18n("Memory Consumption"), this);
- QLabel *l1, *l2, *l3;
+ TQGroupBox *hgb=new TQGroupBox(i18n("Article Handling"), this);
+ TQGroupBox *lgb=new TQGroupBox(i18n("Article List"), this);
+ TQGroupBox *cgb=new TQGroupBox(i18n("Memory Consumption"), this);
+ TQLabel *l1, *l2, *l3;
- a_utoCB=new QCheckBox(i18n("Check for new articles a&utomatically"), hgb);
+ a_utoCB=new TQCheckBox(i18n("Check for new articles a&utomatically"), hgb);
m_axFetch=new KIntSpinBox(0, 100000, 1, 0, 10, hgb);
- l1=new QLabel(m_axFetch, i18n("&Maximum number of articles to fetch:"), hgb);
- m_arkCB=new QCheckBox(i18n("Mar&k article as read after:"), hgb);
+ l1=new TQLabel(m_axFetch, i18n("&Maximum number of articles to fetch:"), hgb);
+ m_arkCB=new TQCheckBox(i18n("Mar&k article as read after:"), hgb);
m_arkSecs=new KIntSpinBox(0, 9999, 1, 0, 10, hgb);
- connect(m_arkCB, SIGNAL(toggled(bool)), m_arkSecs, SLOT(setEnabled(bool)));
+ connect(m_arkCB, TQT_SIGNAL(toggled(bool)), m_arkSecs, TQT_SLOT(setEnabled(bool)));
m_arkSecs->setSuffix(i18n(" sec"));
- m_arkCrossCB=new QCheckBox(i18n("Mark c&rossposted articles as read"), hgb);
+ m_arkCrossCB=new TQCheckBox(i18n("Mark c&rossposted articles as read"), hgb);
- s_martScrollingCB=new QCheckBox(i18n("Smart scrolli&ng"), lgb);
- e_xpThrCB=new QCheckBox(i18n("Show &whole thread on expanding"), lgb);
- d_efaultExpandCB=new QCheckBox(i18n("Default to e&xpanded threads"), lgb);
- s_coreCB=new QCheckBox(i18n("Show article &score"), lgb);
- l_inesCB=new QCheckBox(i18n("Show &line count"), lgb);
- u_nreadCB=new QCheckBox(i18n("Show unread count in &thread"), lgb);
+ s_martScrollingCB=new TQCheckBox(i18n("Smart scrolli&ng"), lgb);
+ e_xpThrCB=new TQCheckBox(i18n("Show &whole thread on expanding"), lgb);
+ d_efaultExpandCB=new TQCheckBox(i18n("Default to e&xpanded threads"), lgb);
+ s_coreCB=new TQCheckBox(i18n("Show article &score"), lgb);
+ l_inesCB=new TQCheckBox(i18n("Show &line count"), lgb);
+ u_nreadCB=new TQCheckBox(i18n("Show unread count in &thread"), lgb);
c_ollCacheSize=new KIntSpinBox(0, 99999, 1, 1, 10, cgb);
c_ollCacheSize->setSuffix(" KB");
- l2=new QLabel(c_ollCacheSize, i18n("Cach&e size for headers:"), cgb);
+ l2=new TQLabel(c_ollCacheSize, i18n("Cach&e size for headers:"), cgb);
a_rtCacheSize=new KIntSpinBox(0, 99999, 1, 1, 10, cgb);
a_rtCacheSize->setSuffix(" KB");
- l3=new QLabel(a_rtCacheSize, i18n("Cache si&ze for articles:"), cgb);
+ l3=new TQLabel(a_rtCacheSize, i18n("Cache si&ze for articles:"), cgb);
- QVBoxLayout *topL=new QVBoxLayout(this, 5);
- QGridLayout *hgbL=new QGridLayout(hgb, 5,2, 8,5);
- QVBoxLayout *lgbL=new QVBoxLayout(lgb, 8, 5);
- QGridLayout *cgbL=new QGridLayout(cgb, 3,2, 8,5);
+ TQVBoxLayout *topL=new TQVBoxLayout(this, 5);
+ TQGridLayout *hgbL=new TQGridLayout(hgb, 5,2, 8,5);
+ TQVBoxLayout *lgbL=new TQVBoxLayout(lgb, 8, 5);
+ TQGridLayout *cgbL=new TQGridLayout(cgb, 3,2, 8,5);
topL->addWidget(hgb);
topL->addWidget(lgb);
@@ -1057,21 +1057,21 @@ KNConfig::ReadNewsGeneralWidget::ReadNewsGeneralWidget( ReadNewsGeneral *d, QWid
cgbL->addWidget(a_rtCacheSize, 2,1);
cgbL->setColStretch(0,1);
- topL->setResizeMode(QLayout::Minimum);
-
- connect(a_utoCB, SIGNAL(toggled(bool)), SLOT(changed()));
- connect(m_axFetch, SIGNAL(valueChanged(int)), SLOT(changed()));
- connect(m_arkCB, SIGNAL(toggled(bool)), SLOT(changed()));
- connect(m_arkSecs, SIGNAL(valueChanged(int)), SLOT(changed()));
- connect(m_arkCrossCB, SIGNAL(toggled(bool)), SLOT(changed()));
- connect(s_martScrollingCB, SIGNAL(toggled(bool)), SLOT(changed()));
- connect(e_xpThrCB, SIGNAL(toggled(bool)), SLOT(changed()));
- connect(d_efaultExpandCB, SIGNAL(toggled(bool)), SLOT(changed()));
- connect(l_inesCB, SIGNAL(toggled(bool)), SLOT(changed()));
- connect(s_coreCB, SIGNAL(toggled(bool)), SLOT(changed()));
- connect(u_nreadCB, SIGNAL(toggled(bool)), SLOT(changed()));
- connect(c_ollCacheSize, SIGNAL(valueChanged(int)), SLOT(changed()));
- connect(a_rtCacheSize, SIGNAL(valueChanged(int)), SLOT(changed()));
+ topL->setResizeMode(TQLayout::Minimum);
+
+ connect(a_utoCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
+ connect(m_axFetch, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed()));
+ connect(m_arkCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
+ connect(m_arkSecs, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed()));
+ connect(m_arkCrossCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
+ connect(s_martScrollingCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
+ connect(e_xpThrCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
+ connect(d_efaultExpandCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
+ connect(l_inesCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
+ connect(s_coreCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
+ connect(u_nreadCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
+ connect(c_ollCacheSize, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed()));
+ connect(a_rtCacheSize, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed()));
load();
}
@@ -1122,56 +1122,56 @@ void KNConfig::ReadNewsGeneralWidget::save()
//=============================================================================================
-KNConfig::ReadNewsNavigationWidget::ReadNewsNavigationWidget( ReadNewsNavigation *d, QWidget *p, const char *n ) :
+KNConfig::ReadNewsNavigationWidget::ReadNewsNavigationWidget( ReadNewsNavigation *d, TQWidget *p, const char *n ) :
KCModule( p, n ),
d_ata( d )
{
- QVBoxLayout *topL=new QVBoxLayout(this, 5);
+ TQVBoxLayout *topL=new TQVBoxLayout(this, 5);
// ==== Mark All as Read ====================================================
- QGroupBox *gb=new QGroupBox(i18n("\"Mark All as Read\" Triggers Following Actions"), this);
- QVBoxLayout *gbL=new QVBoxLayout(gb, 8, 5);
+ TQGroupBox *gb=new TQGroupBox(i18n("\"Mark All as Read\" Triggers Following Actions"), this);
+ TQVBoxLayout *gbL=new TQVBoxLayout(gb, 8, 5);
topL->addWidget(gb);
gbL->addSpacing(fontMetrics().lineSpacing()-4);
- m_arkAllReadGoNextCB=new QCheckBox(i18n("&Switch to the next group"), gb);
+ m_arkAllReadGoNextCB=new TQCheckBox(i18n("&Switch to the next group"), gb);
gbL->addWidget(m_arkAllReadGoNextCB);
- connect(m_arkAllReadGoNextCB, SIGNAL(toggled(bool)), SLOT(changed()));
+ connect(m_arkAllReadGoNextCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
// ==== Mark Thread as Read =================================================
- gb=new QGroupBox(i18n("\"Mark Thread as Read\" Triggers Following Actions"), this);
- gbL=new QVBoxLayout(gb, 8, 5);
+ gb=new TQGroupBox(i18n("\"Mark Thread as Read\" Triggers Following Actions"), this);
+ gbL=new TQVBoxLayout(gb, 8, 5);
topL->addWidget(gb);
gbL->addSpacing(fontMetrics().lineSpacing()-4);
- m_arkThreadReadCloseThreadCB=new QCheckBox(i18n("Clos&e the current thread"), gb);
+ m_arkThreadReadCloseThreadCB=new TQCheckBox(i18n("Clos&e the current thread"), gb);
gbL->addWidget(m_arkThreadReadCloseThreadCB);
- m_arkThreadReadGoNextCB=new QCheckBox(i18n("Go &to the next unread thread"), gb);
+ m_arkThreadReadGoNextCB=new TQCheckBox(i18n("Go &to the next unread thread"), gb);
gbL->addWidget(m_arkThreadReadGoNextCB);
- connect(m_arkThreadReadCloseThreadCB, SIGNAL(toggled(bool)), SLOT(changed()));
- connect(m_arkThreadReadGoNextCB, SIGNAL(toggled(bool)), SLOT(changed()));
+ connect(m_arkThreadReadCloseThreadCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
+ connect(m_arkThreadReadGoNextCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
// ==== Ignore Thread =======================================================
- gb=new QGroupBox(i18n("\"Ignore Thread\" Triggers Following Actions"), this);
- gbL=new QVBoxLayout(gb, 8, 5);
+ gb=new TQGroupBox(i18n("\"Ignore Thread\" Triggers Following Actions"), this);
+ gbL=new TQVBoxLayout(gb, 8, 5);
topL->addWidget(gb);
gbL->addSpacing(fontMetrics().lineSpacing()-4);
- i_gnoreThreadCloseThreadCB=new QCheckBox(i18n("Close the cu&rrent thread"), gb);
+ i_gnoreThreadCloseThreadCB=new TQCheckBox(i18n("Close the cu&rrent thread"), gb);
gbL->addWidget(i_gnoreThreadCloseThreadCB);
- i_gnoreThreadGoNextCB=new QCheckBox(i18n("Go to the next &unread thread"), gb);
+ i_gnoreThreadGoNextCB=new TQCheckBox(i18n("Go to the next &unread thread"), gb);
gbL->addWidget(i_gnoreThreadGoNextCB);
- connect(i_gnoreThreadCloseThreadCB, SIGNAL(toggled(bool)), SLOT(changed()));
- connect(i_gnoreThreadGoNextCB, SIGNAL(toggled(bool)), SLOT(changed()));
+ connect(i_gnoreThreadCloseThreadCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
+ connect(i_gnoreThreadGoNextCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
topL->addStretch(1);
- topL->setResizeMode(QLayout::Minimum);
+ topL->setResizeMode(TQLayout::Minimum);
load();
}
@@ -1206,30 +1206,30 @@ void KNConfig::ReadNewsNavigationWidget::save()
//=============================================================================================
-KNConfig::ReadNewsViewerWidget::ReadNewsViewerWidget( ReadNewsViewer *d, QWidget *p, const char *n ) :
+KNConfig::ReadNewsViewerWidget::ReadNewsViewerWidget( ReadNewsViewer *d, TQWidget *p, const char *n ) :
KCModule( p, n ),
d_ata( d )
{
- QGroupBox *appgb=new QGroupBox(i18n("Appearance"), this);
- QGroupBox *agb=new QGroupBox(i18n("Attachments"), this);
- QGroupBox *secbox = new QGroupBox( i18n("Security"), this );
+ TQGroupBox *appgb=new TQGroupBox(i18n("Appearance"), this);
+ TQGroupBox *agb=new TQGroupBox(i18n("Attachments"), this);
+ TQGroupBox *secbox = new TQGroupBox( i18n("Security"), this );
- r_ewrapCB=new QCheckBox(i18n("Re&wrap text when necessary"), appgb);
- r_emoveTrailingCB=new QCheckBox(i18n("Re&move trailing empty lines"), appgb);
- s_igCB=new QCheckBox(i18n("Show sig&nature"), appgb);
- mShowRefBar = new QCheckBox( i18n("Show reference bar"), appgb );
+ r_ewrapCB=new TQCheckBox(i18n("Re&wrap text when necessary"), appgb);
+ r_emoveTrailingCB=new TQCheckBox(i18n("Re&move trailing empty lines"), appgb);
+ s_igCB=new TQCheckBox(i18n("Show sig&nature"), appgb);
+ mShowRefBar = new TQCheckBox( i18n("Show reference bar"), appgb );
q_uoteCharacters=new KLineEdit(appgb);
- QLabel *quoteCharL = new QLabel(q_uoteCharacters, i18n("Recognized q&uote characters:"), appgb);
+ TQLabel *quoteCharL = new TQLabel(q_uoteCharacters, i18n("Recognized q&uote characters:"), appgb);
- o_penAttCB=new QCheckBox(i18n("Open a&ttachments on click"), agb);
- a_ltAttCB=new QCheckBox(i18n("Show alternati&ve contents as attachments"), agb);
+ o_penAttCB=new TQCheckBox(i18n("Open a&ttachments on click"), agb);
+ a_ltAttCB=new TQCheckBox(i18n("Show alternati&ve contents as attachments"), agb);
- mAlwaysShowHTML = new QCheckBox( i18n("Prefer HTML to plain text"), secbox );
+ mAlwaysShowHTML = new TQCheckBox( i18n("Prefer HTML to plain text"), secbox );
- QVBoxLayout *topL=new QVBoxLayout(this, 5);
- QGridLayout *appgbL=new QGridLayout(appgb, 5,2, 8,5);
- QVBoxLayout *agbL=new QVBoxLayout(agb, 8, 5);
- QVBoxLayout *secLayout = new QVBoxLayout( secbox, 8, 5 );
+ TQVBoxLayout *topL=new TQVBoxLayout(this, 5);
+ TQGridLayout *appgbL=new TQGridLayout(appgb, 5,2, 8,5);
+ TQVBoxLayout *agbL=new TQVBoxLayout(agb, 8, 5);
+ TQVBoxLayout *secLayout = new TQVBoxLayout( secbox, 8, 5 );
topL->addWidget(appgb);
topL->addWidget(agb);
@@ -1251,16 +1251,16 @@ KNConfig::ReadNewsViewerWidget::ReadNewsViewerWidget( ReadNewsViewer *d, QWidget
secLayout->addSpacing( fontMetrics().lineSpacing() - 4 );
secLayout->addWidget( mAlwaysShowHTML );
- topL->setResizeMode(QLayout::Minimum);
+ topL->setResizeMode(TQLayout::Minimum);
- connect(r_ewrapCB, SIGNAL(toggled(bool)), SLOT(changed()));
- connect(r_emoveTrailingCB, SIGNAL(toggled(bool)), SLOT(changed()));
- connect(s_igCB, SIGNAL(toggled(bool)), SLOT(changed()));
- connect(q_uoteCharacters, SIGNAL(textChanged(const QString&)), SLOT(changed()));
- connect(o_penAttCB, SIGNAL(toggled(bool)), SLOT(changed()));
- connect(a_ltAttCB, SIGNAL(toggled(bool)), SLOT(changed()));
- connect( mShowRefBar, SIGNAL(toggled(bool)), SLOT(changed()) );
- connect( mAlwaysShowHTML, SIGNAL(toggled(bool)), SLOT(changed()) );
+ connect(r_ewrapCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
+ connect(r_emoveTrailingCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
+ connect(s_igCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
+ connect(q_uoteCharacters, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(changed()));
+ connect(o_penAttCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
+ connect(a_ltAttCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
+ connect( mShowRefBar, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()) );
+ connect( mAlwaysShowHTML, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()) );
load();
}
@@ -1302,38 +1302,38 @@ void KNConfig::ReadNewsViewerWidget::save()
//=============================================================================================
-KNConfig::DisplayedHeadersWidget::DisplayedHeadersWidget( DisplayedHeaders *d, QWidget *p, const char *n ) :
+KNConfig::DisplayedHeadersWidget::DisplayedHeadersWidget( DisplayedHeaders *d, TQWidget *p, const char *n ) :
KCModule( p, n ),
s_ave( false ),
d_ata( d )
{
- QGridLayout *topL=new QGridLayout(this, 7,2, 5,5);
+ TQGridLayout *topL=new TQGridLayout(this, 7,2, 5,5);
//listbox
l_box=new KNDialogListBox(false, this);
- connect(l_box, SIGNAL(selected(int)), this, SLOT(slotItemSelected(int)));
- connect(l_box, SIGNAL(selectionChanged()), this, SLOT(slotSelectionChanged()));
+ connect(l_box, TQT_SIGNAL(selected(int)), this, TQT_SLOT(slotItemSelected(int)));
+ connect(l_box, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotSelectionChanged()));
topL->addMultiCellWidget(l_box, 0,6, 0,0);
// buttons
- a_ddBtn=new QPushButton(i18n("&Add..."), this);
- connect(a_ddBtn, SIGNAL(clicked()), this, SLOT(slotAddBtnClicked()));
+ a_ddBtn=new TQPushButton(i18n("&Add..."), this);
+ connect(a_ddBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddBtnClicked()));
topL->addWidget(a_ddBtn, 0,1);
- d_elBtn=new QPushButton(i18n("&Delete"), this);
- connect(d_elBtn, SIGNAL(clicked()), this, SLOT(slotDelBtnClicked()));
+ d_elBtn=new TQPushButton(i18n("&Delete"), this);
+ connect(d_elBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDelBtnClicked()));
topL->addWidget(d_elBtn, 1,1);
- e_ditBtn=new QPushButton(i18n("modify something","&Edit..."), this);
- connect(e_ditBtn, SIGNAL(clicked()), this, SLOT(slotEditBtnClicked()));
+ e_ditBtn=new TQPushButton(i18n("modify something","&Edit..."), this);
+ connect(e_ditBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditBtnClicked()));
topL->addWidget(e_ditBtn, 2,1);
- u_pBtn=new QPushButton(i18n("&Up"), this);
- connect(u_pBtn, SIGNAL(clicked()), this, SLOT(slotUpBtnClicked()));
+ u_pBtn=new TQPushButton(i18n("&Up"), this);
+ connect(u_pBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotUpBtnClicked()));
topL->addWidget(u_pBtn, 4,1);
- d_ownBtn=new QPushButton(i18n("Do&wn"), this);
- connect(d_ownBtn, SIGNAL(clicked()), this, SLOT(slotDownBtnClicked()));
+ d_ownBtn=new TQPushButton(i18n("Do&wn"), this);
+ connect(d_ownBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDownBtnClicked()));
topL->addWidget(d_ownBtn, 5,1);
topL->addRowSpacing(3,20); // separate up/down buttons
@@ -1354,8 +1354,8 @@ KNConfig::DisplayedHeadersWidget::~DisplayedHeadersWidget()
void KNConfig::DisplayedHeadersWidget::load()
{
l_box->clear();
- QValueList<KNDisplayedHeader*> list = d_ata->headers();
- for ( QValueList<KNDisplayedHeader*>::Iterator it = list.begin(); it != list.end(); ++it )
+ TQValueList<KNDisplayedHeader*> list = d_ata->headers();
+ for ( TQValueList<KNDisplayedHeader*>::Iterator it = list.begin(); it != list.end(); ++it )
l_box->insertItem( generateItem( (*it) ) );
}
@@ -1372,7 +1372,7 @@ void KNConfig::DisplayedHeadersWidget::save()
KNConfig::DisplayedHeadersWidget::HdrItem* KNConfig::DisplayedHeadersWidget::generateItem(KNDisplayedHeader *h)
{
- QString text;
+ TQString text;
if(h->hasName()) {
text=h->translatedName();
text+=": <";
@@ -1487,53 +1487,53 @@ void KNConfig::DisplayedHeadersWidget::slotDownBtnClicked()
//=============================================================================================
-KNConfig::DisplayedHeaderConfDialog::DisplayedHeaderConfDialog(KNDisplayedHeader *h, QWidget *p, char *n)
+KNConfig::DisplayedHeaderConfDialog::DisplayedHeaderConfDialog(KNDisplayedHeader *h, TQWidget *p, char *n)
: KDialogBase(Plain, i18n("Header Properties"),Ok|Cancel|Help, Ok, p, n),
h_dr(h)
{
- QFrame* page=plainPage();
- QGridLayout *topL=new QGridLayout(page, 2, 2, 0, 5);
+ TQFrame* page=plainPage();
+ TQGridLayout *topL=new TQGridLayout(page, 2, 2, 0, 5);
- QWidget *nameW = new QWidget(page);
- QGridLayout *nameL=new QGridLayout(nameW, 2, 2, 5);
+ TQWidget *nameW = new TQWidget(page);
+ TQGridLayout *nameL=new TQGridLayout(nameW, 2, 2, 5);
h_drC=new KComboBox(true, nameW);
h_drC->lineEdit()->setMaxLength(64);
- connect(h_drC, SIGNAL(activated(int)), this, SLOT(slotActivated(int)));
- nameL->addWidget(new QLabel(h_drC, i18n("H&eader:"),nameW),0,0);
+ connect(h_drC, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotActivated(int)));
+ nameL->addWidget(new TQLabel(h_drC, i18n("H&eader:"),nameW),0,0);
nameL->addWidget(h_drC,0,1);
n_ameE=new KLineEdit(nameW);
n_ameE->setMaxLength(64);
- nameL->addWidget(new QLabel(n_ameE, i18n("Displayed na&me:"),nameW),1,0);
+ nameL->addWidget(new TQLabel(n_ameE, i18n("Displayed na&me:"),nameW),1,0);
nameL->addWidget(n_ameE,1,1);
nameL->setColStretch(1,1);
topL->addMultiCellWidget(nameW,0,0,0,1);
- QGroupBox *ngb=new QGroupBox(i18n("Name"), page);
+ TQGroupBox *ngb=new TQGroupBox(i18n("Name"), page);
// ### hide style settings for now, the new viewer doesn't support this yet
ngb->hide();
- QVBoxLayout *ngbL = new QVBoxLayout(ngb, 8, 5);
+ TQVBoxLayout *ngbL = new TQVBoxLayout(ngb, 8, 5);
ngbL->setAutoAdd(true);
ngbL->addSpacing(fontMetrics().lineSpacing()-4);
- n_ameCB[0]=new QCheckBox(i18n("&Large"), ngb);
- n_ameCB[1]=new QCheckBox(i18n("&Bold"), ngb);
- n_ameCB[2]=new QCheckBox(i18n("&Italic"), ngb);
- n_ameCB[3]=new QCheckBox(i18n("&Underlined"), ngb);
+ n_ameCB[0]=new TQCheckBox(i18n("&Large"), ngb);
+ n_ameCB[1]=new TQCheckBox(i18n("&Bold"), ngb);
+ n_ameCB[2]=new TQCheckBox(i18n("&Italic"), ngb);
+ n_ameCB[3]=new TQCheckBox(i18n("&Underlined"), ngb);
topL->addWidget(ngb,1,0);
- QGroupBox *vgb=new QGroupBox(i18n("Value"), page);
+ TQGroupBox *vgb=new TQGroupBox(i18n("Value"), page);
// ### hide style settings for now, the new viewer doen't support this yet
vgb->hide();
- QVBoxLayout *vgbL = new QVBoxLayout(vgb, 8, 5);
+ TQVBoxLayout *vgbL = new TQVBoxLayout(vgb, 8, 5);
vgbL->setAutoAdd(true);
vgbL->addSpacing(fontMetrics().lineSpacing()-4);
- v_alueCB[0]=new QCheckBox(i18n("L&arge"), vgb);
- v_alueCB[1]=new QCheckBox(i18n("Bol&d"), vgb);
- v_alueCB[2]=new QCheckBox(i18n("I&talic"), vgb);
- v_alueCB[3]=new QCheckBox(i18n("U&nderlined"), vgb);
+ v_alueCB[0]=new TQCheckBox(i18n("L&arge"), vgb);
+ v_alueCB[1]=new TQCheckBox(i18n("Bol&d"), vgb);
+ v_alueCB[2]=new TQCheckBox(i18n("I&talic"), vgb);
+ v_alueCB[3]=new TQCheckBox(i18n("U&nderlined"), vgb);
topL->addWidget(vgb,1,1);
topL->setColStretch(0,1);
@@ -1551,7 +1551,7 @@ KNConfig::DisplayedHeaderConfDialog::DisplayedHeaderConfDialog(KNDisplayedHeader
setFixedHeight(sizeHint().height());
KNHelper::restoreWindowSize("accReadHdrPropDLG", this, sizeHint());
- connect(n_ameE, SIGNAL(textChanged(const QString&)), SLOT(slotNameChanged(const QString&)));
+ connect(n_ameE, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(slotNameChanged(const TQString&)));
setHelp("anc-knode-headers");
slotNameChanged( n_ameE->text() );
@@ -1587,7 +1587,7 @@ void KNConfig::DisplayedHeaderConfDialog::slotActivated(int pos)
// disable the name format options when the name is empty
-void KNConfig::DisplayedHeaderConfDialog::slotNameChanged(const QString& str)
+void KNConfig::DisplayedHeaderConfDialog::slotNameChanged(const TQString& str)
{
for(int i=0; i<4; i++)
n_ameCB[i]->setEnabled(!str.isEmpty());
@@ -1596,27 +1596,27 @@ void KNConfig::DisplayedHeaderConfDialog::slotNameChanged(const QString& str)
//=============================================================================================
-KNConfig::ScoringWidget::ScoringWidget( Scoring *d, QWidget *p, const char *n ) :
+KNConfig::ScoringWidget::ScoringWidget( Scoring *d, TQWidget *p, const char *n ) :
KCModule( p, n ),
d_ata( d )
{
- QGridLayout *topL = new QGridLayout(this,4,2, 5,5);
+ TQGridLayout *topL = new TQGridLayout(this,4,2, 5,5);
ksc = new KScoringEditorWidget(knGlobals.scoringManager(), this);
topL->addMultiCellWidget(ksc, 0,0, 0,1);
topL->addRowSpacing(1, 10);
i_gnored=new KIntSpinBox(-100000, 100000, 1, 0, 10, this);
- QLabel *l=new QLabel(i_gnored, i18n("Default score for &ignored threads:"), this);
+ TQLabel *l=new TQLabel(i_gnored, i18n("Default score for &ignored threads:"), this);
topL->addWidget(l, 2, 0);
topL->addWidget(i_gnored, 2, 1);
- connect(i_gnored, SIGNAL(valueChanged(int)), SLOT(changed()));
+ connect(i_gnored, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed()));
w_atched=new KIntSpinBox(-100000, 100000, 1, 0, 10, this);
- l=new QLabel(w_atched, i18n("Default score for &watched threads:"), this);
+ l=new TQLabel(w_atched, i18n("Default score for &watched threads:"), this);
topL->addWidget(l, 3, 0);
topL->addWidget(w_atched, 3, 1);
- connect(w_atched, SIGNAL(valueChanged(int)), SLOT(changed()));
+ connect(w_atched, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed()));
topL->setColStretch(0, 1);
@@ -1647,59 +1647,59 @@ void KNConfig::ScoringWidget::save()
//=============================================================================================
-KNConfig::FilterListWidget::FilterListWidget( QWidget *p, const char *n ) :
+KNConfig::FilterListWidget::FilterListWidget( TQWidget *p, const char *n ) :
KCModule( p, n ),
f_ilManager( knGlobals.filterManager() )
{
- QGridLayout *topL=new QGridLayout(this, 6,2, 5,5);
+ TQGridLayout *topL=new TQGridLayout(this, 6,2, 5,5);
// == Filters =================================================
f_lb=new KNDialogListBox(false, this);
- topL->addWidget(new QLabel(f_lb, i18n("&Filters:"),this),0,0);
+ topL->addWidget(new TQLabel(f_lb, i18n("&Filters:"),this),0,0);
- connect(f_lb, SIGNAL(selectionChanged()), SLOT(slotSelectionChangedFilter()));
- connect(f_lb, SIGNAL(selected(int)), SLOT(slotItemSelectedFilter(int)));
+ connect(f_lb, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotSelectionChangedFilter()));
+ connect(f_lb, TQT_SIGNAL(selected(int)), TQT_SLOT(slotItemSelectedFilter(int)));
topL->addMultiCellWidget(f_lb,1,5,0,0);
- a_ddBtn=new QPushButton(i18n("&Add..."), this);
- connect(a_ddBtn, SIGNAL(clicked()), this, SLOT(slotAddBtnClicked()));
+ a_ddBtn=new TQPushButton(i18n("&Add..."), this);
+ connect(a_ddBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddBtnClicked()));
topL->addWidget(a_ddBtn,1,1);
- e_ditBtn=new QPushButton(i18n("modify something","&Edit..."), this);
- connect(e_ditBtn, SIGNAL(clicked()), this, SLOT(slotEditBtnClicked()));
+ e_ditBtn=new TQPushButton(i18n("modify something","&Edit..."), this);
+ connect(e_ditBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditBtnClicked()));
topL->addWidget(e_ditBtn,2,1);
- c_opyBtn=new QPushButton(i18n("Co&py..."), this);
- connect(c_opyBtn, SIGNAL(clicked()), this, SLOT(slotCopyBtnClicked()));
+ c_opyBtn=new TQPushButton(i18n("Co&py..."), this);
+ connect(c_opyBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCopyBtnClicked()));
topL->addWidget(c_opyBtn,3,1);
- d_elBtn=new QPushButton(i18n("&Delete"), this);
- connect(d_elBtn, SIGNAL(clicked()), this, SLOT(slotDelBtnClicked()));
+ d_elBtn=new TQPushButton(i18n("&Delete"), this);
+ connect(d_elBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDelBtnClicked()));
topL->addWidget(d_elBtn,4,1);
// == Menu ====================================================
m_lb=new KNDialogListBox(false, this);
- topL->addWidget(new QLabel(m_lb, i18n("&Menu:"),this),6,0);
+ topL->addWidget(new TQLabel(m_lb, i18n("&Menu:"),this),6,0);
- connect(m_lb, SIGNAL(selectionChanged()), SLOT(slotSelectionChangedMenu()));
+ connect(m_lb, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotSelectionChangedMenu()));
topL->addMultiCellWidget(m_lb,7,11,0,0);
- u_pBtn=new QPushButton(i18n("&Up"), this);
- connect(u_pBtn, SIGNAL(clicked()), this, SLOT(slotUpBtnClicked()));
+ u_pBtn=new TQPushButton(i18n("&Up"), this);
+ connect(u_pBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotUpBtnClicked()));
topL->addWidget(u_pBtn,7,1);
- d_ownBtn=new QPushButton(i18n("Do&wn"), this);
- connect(d_ownBtn, SIGNAL(clicked()), this, SLOT(slotDownBtnClicked()));
+ d_ownBtn=new TQPushButton(i18n("Do&wn"), this);
+ connect(d_ownBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDownBtnClicked()));
topL->addWidget(d_ownBtn,8,1);
- s_epAddBtn=new QPushButton(i18n("Add\n&Separator"), this);
- connect(s_epAddBtn, SIGNAL(clicked()), this, SLOT(slotSepAddBtnClicked()));
+ s_epAddBtn=new TQPushButton(i18n("Add\n&Separator"), this);
+ connect(s_epAddBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSepAddBtnClicked()));
topL->addWidget(s_epAddBtn,9,1);
- s_epRemBtn=new QPushButton(i18n("&Remove\nSeparator"), this);
- connect(s_epRemBtn, SIGNAL(clicked()), this, SLOT(slotSepRemBtnClicked()));
+ s_epRemBtn=new TQPushButton(i18n("&Remove\nSeparator"), this);
+ connect(s_epRemBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSepRemBtnClicked()));
topL->addWidget(s_epRemBtn,10,1);
topL->setRowStretch(5,1);
@@ -1791,10 +1791,10 @@ void KNConfig::FilterListWidget::removeMenuItem(KNArticleFilter *f)
}
-QValueList<int> KNConfig::FilterListWidget::menuOrder()
+TQValueList<int> KNConfig::FilterListWidget::menuOrder()
{
KNArticleFilter *f;
- QValueList<int> lst;
+ TQValueList<int> lst;
for(uint i=0; i<m_lb->count(); i++) {
f= (static_cast<LBoxItem*>(m_lb->item(i)))->filter;
@@ -1807,7 +1807,7 @@ QValueList<int> KNConfig::FilterListWidget::menuOrder()
}
-int KNConfig::FilterListWidget::findItem(QListBox *l, KNArticleFilter *f)
+int KNConfig::FilterListWidget::findItem(TQListBox *l, KNArticleFilter *f)
{
int idx=0;
bool found=false;
@@ -1929,79 +1929,79 @@ void KNConfig::FilterListWidget::slotSelectionChangedMenu()
//=============================================================================================
-KNConfig::PostNewsTechnicalWidget::PostNewsTechnicalWidget( PostNewsTechnical *d, QWidget *p, const char *n ) :
+KNConfig::PostNewsTechnicalWidget::PostNewsTechnicalWidget( PostNewsTechnical *d, TQWidget *p, const char *n ) :
KCModule( p, n ),
d_ata( d )
{
- QVBoxLayout *topL=new QVBoxLayout(this, 5);
+ TQVBoxLayout *topL=new TQVBoxLayout(this, 5);
// ==== General =============================================================
- QGroupBox *ggb=new QGroupBox(i18n("General"), this);
- QGridLayout *ggbL=new QGridLayout(ggb, 6,2, 8,5);
+ TQGroupBox *ggb=new TQGroupBox(i18n("General"), this);
+ TQGridLayout *ggbL=new TQGridLayout(ggb, 6,2, 8,5);
topL->addWidget(ggb);
ggbL->addRowSpacing(0, fontMetrics().lineSpacing()-4);
- c_harset=new QComboBox(ggb);
+ c_harset=new TQComboBox(ggb);
c_harset->insertStringList(d->composerCharsets());
- ggbL->addWidget(new QLabel(c_harset, i18n("Cha&rset:"), ggb), 1,0);
+ ggbL->addWidget(new TQLabel(c_harset, i18n("Cha&rset:"), ggb), 1,0);
ggbL->addWidget(c_harset, 1,1);
- connect(c_harset, SIGNAL(activated(int)), SLOT(changed()));
+ connect(c_harset, TQT_SIGNAL(activated(int)), TQT_SLOT(changed()));
- e_ncoding=new QComboBox(ggb);
+ e_ncoding=new TQComboBox(ggb);
e_ncoding->insertItem(i18n("Allow 8-bit"));
e_ncoding->insertItem(i18n("7-bit (Quoted-Printable)"));
- ggbL->addWidget(new QLabel(e_ncoding, i18n("Enco&ding:"), ggb), 2,0);
+ ggbL->addWidget(new TQLabel(e_ncoding, i18n("Enco&ding:"), ggb), 2,0);
ggbL->addWidget(e_ncoding, 2,1);
- connect(e_ncoding, SIGNAL(activated(int)), SLOT(changed()));
+ connect(e_ncoding, TQT_SIGNAL(activated(int)), TQT_SLOT(changed()));
- u_seOwnCSCB=new QCheckBox(i18n("Use o&wn default charset when replying"), ggb);
+ u_seOwnCSCB=new TQCheckBox(i18n("Use o&wn default charset when replying"), ggb);
ggbL->addMultiCellWidget(u_seOwnCSCB, 3,3, 0,1);
- connect(u_seOwnCSCB, SIGNAL(toggled(bool)), SLOT(changed()));
+ connect(u_seOwnCSCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
- g_enMIdCB=new QCheckBox(i18n("&Generate message-id"), ggb);
- connect(g_enMIdCB, SIGNAL(toggled(bool)), this, SLOT(slotGenMIdCBToggled(bool)));
+ g_enMIdCB=new TQCheckBox(i18n("&Generate message-id"), ggb);
+ connect(g_enMIdCB, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotGenMIdCBToggled(bool)));
ggbL->addMultiCellWidget(g_enMIdCB, 4,4, 0,1);
h_ost=new KLineEdit(ggb);
h_ost->setEnabled(false);
- h_ostL=new QLabel(h_ost, i18n("Ho&st name:"), ggb);
+ h_ostL=new TQLabel(h_ost, i18n("Ho&st name:"), ggb);
h_ostL->setEnabled(false);
ggbL->addWidget(h_ostL, 5,0);
ggbL->addWidget(h_ost, 5,1);
ggbL->setColStretch(1,1);
- connect(h_ost, SIGNAL(textChanged(const QString&)), SLOT(changed()));
+ connect(h_ost, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(changed()));
// ==== X-Headers =============================================================
- QGroupBox *xgb=new QGroupBox(i18n("X-Headers"), this);
+ TQGroupBox *xgb=new TQGroupBox(i18n("X-Headers"), this);
topL->addWidget(xgb, 1);
- QGridLayout *xgbL=new QGridLayout(xgb, 7,2, 8,5);
+ TQGridLayout *xgbL=new TQGridLayout(xgb, 7,2, 8,5);
xgbL->addRowSpacing(0, fontMetrics().lineSpacing()-4);
l_box=new KNDialogListBox(false, xgb);
- connect(l_box, SIGNAL(selected(int)), SLOT(slotItemSelected(int)));
- connect(l_box, SIGNAL(selectionChanged()), SLOT(slotSelectionChanged()));
+ connect(l_box, TQT_SIGNAL(selected(int)), TQT_SLOT(slotItemSelected(int)));
+ connect(l_box, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotSelectionChanged()));
xgbL->addMultiCellWidget(l_box, 1,4, 0,0);
- a_ddBtn=new QPushButton(i18n("&Add..."), xgb);
- connect(a_ddBtn, SIGNAL(clicked()), SLOT(slotAddBtnClicked()));
+ a_ddBtn=new TQPushButton(i18n("&Add..."), xgb);
+ connect(a_ddBtn, TQT_SIGNAL(clicked()), TQT_SLOT(slotAddBtnClicked()));
xgbL->addWidget(a_ddBtn, 1,1);
- d_elBtn=new QPushButton(i18n("Dele&te"), xgb);
- connect(d_elBtn, SIGNAL(clicked()), SLOT(slotDelBtnClicked()));
+ d_elBtn=new TQPushButton(i18n("Dele&te"), xgb);
+ connect(d_elBtn, TQT_SIGNAL(clicked()), TQT_SLOT(slotDelBtnClicked()));
xgbL->addWidget(d_elBtn, 2,1);
- e_ditBtn=new QPushButton(i18n("modify something","&Edit..."), xgb);
- connect(e_ditBtn, SIGNAL(clicked()), SLOT(slotEditBtnClicked()));
+ e_ditBtn=new TQPushButton(i18n("modify something","&Edit..."), xgb);
+ connect(e_ditBtn, TQT_SIGNAL(clicked()), TQT_SLOT(slotEditBtnClicked()));
xgbL->addWidget(e_ditBtn, 3,1);
- QLabel *placeHolders = new QLabel(i18n("<qt>Placeholders for replies: <b>%NAME</b>=sender's name, <b>%EMAIL</b>=sender's address</qt>"), xgb);
+ TQLabel *placeHolders = new TQLabel(i18n("<qt>Placeholders for replies: <b>%NAME</b>=sender's name, <b>%EMAIL</b>=sender's address</qt>"), xgb);
xgbL->addMultiCellWidget(placeHolders, 5, 5, 0, 1);
- i_ncUaCB=new QCheckBox(i18n("Do not add the \"&User-Agent\" identification header"), xgb);
+ i_ncUaCB=new TQCheckBox(i18n("Do not add the \"&User-Agent\" identification header"), xgb);
xgbL->addMultiCellWidget(i_ncUaCB, 6,6, 0,1);
- connect(i_ncUaCB, SIGNAL(toggled(bool)), SLOT(changed()));
+ connect(i_ncUaCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
xgbL->setRowStretch(4,1);
xgbL->setColStretch(0,1);
@@ -2074,7 +2074,7 @@ void KNConfig::PostNewsTechnicalWidget::slotItemSelected(int)
void KNConfig::PostNewsTechnicalWidget::slotAddBtnClicked()
{
- XHeaderConfDialog *dlg=new XHeaderConfDialog(QString::null, this);
+ XHeaderConfDialog *dlg=new XHeaderConfDialog(TQString::null, this);
if (dlg->exec())
l_box->insertItem(dlg->result());
@@ -2119,16 +2119,16 @@ void KNConfig::PostNewsTechnicalWidget::slotEditBtnClicked()
//===================================================================================================
-KNConfig::XHeaderConfDialog::XHeaderConfDialog(const QString &h, QWidget *p, const char *n)
+KNConfig::XHeaderConfDialog::XHeaderConfDialog(const TQString &h, TQWidget *p, const char *n)
: KDialogBase(Plain, i18n("X-Headers"),Ok|Cancel, Ok, p, n)
{
- QFrame* page=plainPage();
- QHBoxLayout *topL=new QHBoxLayout(page, 5,8);
+ TQFrame* page=plainPage();
+ TQHBoxLayout *topL=new TQHBoxLayout(page, 5,8);
topL->setAutoAdd(true);
- new QLabel("X-", page);
+ new TQLabel("X-", page);
n_ame=new KLineEdit(page);
- new QLabel(":", page);
+ new TQLabel(":", page);
v_alue=new KLineEdit(page);
int pos=h.find(": ", 2);
@@ -2153,95 +2153,95 @@ KNConfig::XHeaderConfDialog::~XHeaderConfDialog()
-QString KNConfig::XHeaderConfDialog::result()
+TQString KNConfig::XHeaderConfDialog::result()
{
- QString value = v_alue->text();
+ TQString value = v_alue->text();
// just in case someone pastes a newline
value.replace( '\n', ' ' );
- return QString( "X-%1: %2" ).arg( n_ame->text() ).arg( value );
+ return TQString( "X-%1: %2" ).arg( n_ame->text() ).arg( value );
}
//===================================================================================================
-KNConfig::PostNewsComposerWidget::PostNewsComposerWidget( PostNewsComposer *d, QWidget *p, const char *n ) :
+KNConfig::PostNewsComposerWidget::PostNewsComposerWidget( PostNewsComposer *d, TQWidget *p, const char *n ) :
KCModule( p, n ),
d_ata( d )
{
- QVBoxLayout *topL=new QVBoxLayout(this, 5);
+ TQVBoxLayout *topL=new TQVBoxLayout(this, 5);
// === general ===========================================================
- QGroupBox *generalB=new QGroupBox(i18n("General"), this);
+ TQGroupBox *generalB=new TQGroupBox(i18n("General"), this);
topL->addWidget(generalB);
- QGridLayout *generalL=new QGridLayout(generalB, 3,3, 8,5);
+ TQGridLayout *generalL=new TQGridLayout(generalB, 3,3, 8,5);
generalL->addRowSpacing(0, fontMetrics().lineSpacing()-4);
- w_ordWrapCB=new QCheckBox(i18n("Word &wrap at column:"), generalB);
+ w_ordWrapCB=new TQCheckBox(i18n("Word &wrap at column:"), generalB);
generalL->addWidget(w_ordWrapCB,1,0);
m_axLen=new KIntSpinBox(20, 200, 1, 20, 10, generalB);
generalL->addWidget(m_axLen,1,2);
- connect(w_ordWrapCB, SIGNAL(toggled(bool)), m_axLen, SLOT(setEnabled(bool)));
- connect(w_ordWrapCB, SIGNAL(toggled(bool)), SLOT(changed()));
- connect(m_axLen, SIGNAL(valueChanged(int)), SLOT(changed()));
+ connect(w_ordWrapCB, TQT_SIGNAL(toggled(bool)), m_axLen, TQT_SLOT(setEnabled(bool)));
+ connect(w_ordWrapCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
+ connect(m_axLen, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed()));
- o_wnSigCB=new QCheckBox(i18n("Appe&nd signature automatically"), generalB);
+ o_wnSigCB=new TQCheckBox(i18n("Appe&nd signature automatically"), generalB);
generalL->addMultiCellWidget(o_wnSigCB,2,2,0,1);
- connect(o_wnSigCB, SIGNAL(toggled(bool)), SLOT(changed()));
+ connect(o_wnSigCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
generalL->setColStretch(1,1);
// === reply =============================================================
- QGroupBox *replyB=new QGroupBox(i18n("Reply"), this);
+ TQGroupBox *replyB=new TQGroupBox(i18n("Reply"), this);
topL->addWidget(replyB);
- QGridLayout *replyL=new QGridLayout(replyB, 7,2, 8,5);
+ TQGridLayout *replyL=new TQGridLayout(replyB, 7,2, 8,5);
replyL->addRowSpacing(0, fontMetrics().lineSpacing()-4);
i_ntro=new KLineEdit(replyB);
- replyL->addMultiCellWidget(new QLabel(i_ntro,i18n("&Introduction phrase:"), replyB),1,1,0,1);
+ replyL->addMultiCellWidget(new TQLabel(i_ntro,i18n("&Introduction phrase:"), replyB),1,1,0,1);
replyL->addMultiCellWidget(i_ntro, 2,2,0,1);
- replyL->addMultiCellWidget(new QLabel(i18n("<qt>Placeholders: <b>%NAME</b>=sender's name, <b>%EMAIL</b>=sender's address,<br><b>%DATE</b>=date, <b>%MSID</b>=message-id, <b>%GROUP</b>=group name, <b>%L</b>=line break</qt>"), replyB),3,3,0,1);
- connect(i_ntro, SIGNAL(textChanged(const QString&)), SLOT(changed()));
+ replyL->addMultiCellWidget(new TQLabel(i18n("<qt>Placeholders: <b>%NAME</b>=sender's name, <b>%EMAIL</b>=sender's address,<br><b>%DATE</b>=date, <b>%MSID</b>=message-id, <b>%GROUP</b>=group name, <b>%L</b>=line break</qt>"), replyB),3,3,0,1);
+ connect(i_ntro, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(changed()));
- r_ewrapCB=new QCheckBox(i18n("Rewrap quoted te&xt automatically"), replyB);
+ r_ewrapCB=new TQCheckBox(i18n("Rewrap quoted te&xt automatically"), replyB);
replyL->addMultiCellWidget(r_ewrapCB, 4,4,0,1);
- connect(r_ewrapCB, SIGNAL(toggled(bool)), SLOT(changed()));
+ connect(r_ewrapCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
- a_uthSigCB=new QCheckBox(i18n("Include the a&uthor's signature"), replyB);
+ a_uthSigCB=new TQCheckBox(i18n("Include the a&uthor's signature"), replyB);
replyL->addMultiCellWidget(a_uthSigCB, 5,5,0,1);
- connect(a_uthSigCB, SIGNAL(toggled(bool)), SLOT(changed()));
+ connect(a_uthSigCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
- c_ursorOnTopCB=new QCheckBox(i18n("Put the cursor &below the introduction phrase"), replyB);
+ c_ursorOnTopCB=new TQCheckBox(i18n("Put the cursor &below the introduction phrase"), replyB);
replyL->addMultiCellWidget(c_ursorOnTopCB, 6,6,0,1);
- connect(c_ursorOnTopCB, SIGNAL(toggled(bool)), SLOT(changed()));
+ connect(c_ursorOnTopCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(changed()));
replyL->setColStretch(1,1);
// === external editor ========================================================
- QGroupBox *editorB=new QGroupBox(i18n("External Editor"), this);
+ TQGroupBox *editorB=new TQGroupBox(i18n("External Editor"), this);
topL->addWidget(editorB);
- QGridLayout *editorL=new QGridLayout(editorB, 6,3, 8,5);
+ TQGridLayout *editorL=new TQGridLayout(editorB, 6,3, 8,5);
editorL->addRowSpacing(0, fontMetrics().lineSpacing()-4);
e_ditor=new KLineEdit(editorB);
- editorL->addWidget(new QLabel(e_ditor, i18n("Specify edi&tor:"), editorB),1,0);
+ editorL->addWidget(new TQLabel(e_ditor, i18n("Specify edi&tor:"), editorB),1,0);
editorL->addWidget(e_ditor,1,1);
- QPushButton *btn = new QPushButton(i18n("Choo&se..."),editorB);
- connect(btn, SIGNAL(clicked()), SLOT(slotChooseEditor()));
- connect(e_ditor, SIGNAL(textChanged(const QString&)), SLOT(changed()));
+ TQPushButton *btn = new TQPushButton(i18n("Choo&se..."),editorB);
+ connect(btn, TQT_SIGNAL(clicked()), TQT_SLOT(slotChooseEditor()));
+ connect(e_ditor, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(changed()));
editorL->addWidget(btn,1,2);
- editorL->addMultiCellWidget(new QLabel(i18n("%f will be replaced with the filename to edit."), editorB),2,2,0,2);
+ editorL->addMultiCellWidget(new TQLabel(i18n("%f will be replaced with the filename to edit."), editorB),2,2,0,2);
- e_xternCB=new QCheckBox(i18n("Start exte&rnal editor automatically"), editorB);
+ e_xternCB=new TQCheckBox(i18n("Start exte&rnal editor automatically"), editorB);
editorL->addMultiCellWidget(e_xternCB, 3,3,0,2);
- connect(e_xternCB, SIGNAL(clicked()), SLOT(changed()));
+ connect(e_xternCB, TQT_SIGNAL(clicked()), TQT_SLOT(changed()));
editorL->setColStretch(1,1);
@@ -2289,11 +2289,11 @@ void KNConfig::PostNewsComposerWidget::save()
void KNConfig::PostNewsComposerWidget::slotChooseEditor()
{
- QString path=e_ditor->text().simplifyWhiteSpace();
+ TQString path=e_ditor->text().simplifyWhiteSpace();
if (path.right(3) == " %f")
path.truncate(path.length()-3);
- path=KFileDialog::getOpenFileName(path, QString::null, this, i18n("Choose Editor"));
+ path=KFileDialog::getOpenFileName(path, TQString::null, this, i18n("Choose Editor"));
if (!path.isEmpty())
e_ditor->setText(path+" %f");
@@ -2303,14 +2303,14 @@ void KNConfig::PostNewsComposerWidget::slotChooseEditor()
//===================================================================================================
-KNConfig::PostNewsSpellingWidget::PostNewsSpellingWidget( QWidget *p, const char *n ) :
+KNConfig::PostNewsSpellingWidget::PostNewsSpellingWidget( TQWidget *p, const char *n ) :
KCModule( p, n )
{
- QVBoxLayout *topL=new QVBoxLayout(this, 5);
+ TQVBoxLayout *topL=new TQVBoxLayout(this, 5);
c_onf = new KSpellConfig( this, "spell", 0, false );
topL->addWidget(c_onf);
- connect(c_onf, SIGNAL(configChanged()), SLOT(changed()));
+ connect(c_onf, TQT_SIGNAL(configChanged()), TQT_SLOT(changed()));
topL->addStretch(1);
}
@@ -2329,13 +2329,13 @@ void KNConfig::PostNewsSpellingWidget::save()
//==============================================================================================================
-KNConfig::PrivacyWidget::PrivacyWidget(QWidget *p, const char *n) :
+KNConfig::PrivacyWidget::PrivacyWidget(TQWidget *p, const char *n) :
KCModule( p, n )
{
- QBoxLayout *topLayout = new QVBoxLayout(this, 5);
+ TQBoxLayout *topLayout = new TQVBoxLayout(this, 5);
c_onf = new Kpgp::Config(this,"knode pgp config",false);
topLayout->addWidget(c_onf);
- connect(c_onf, SIGNAL(changed()), SLOT(changed()));
+ connect(c_onf, TQT_SIGNAL(changed()), TQT_SLOT(changed()));
topLayout->addStretch(1);
@@ -2360,60 +2360,60 @@ void KNConfig::PrivacyWidget::save()
//BEGIN: Cleanup configuration widgets ---------------------------------------
-KNConfig::GroupCleanupWidget::GroupCleanupWidget( Cleanup *data, QWidget *parent, const char *name )
- : QWidget( parent, name ), mData( data )
+KNConfig::GroupCleanupWidget::GroupCleanupWidget( Cleanup *data, TQWidget *parent, const char *name )
+ : TQWidget( parent, name ), mData( data )
{
- QVBoxLayout *top = new QVBoxLayout( this );
+ TQVBoxLayout *top = new TQVBoxLayout( this );
if (!mData->isGlobal()) {
- mDefault = new QCheckBox( i18n("&Use global cleanup configuration"), this );
- connect( mDefault, SIGNAL(toggled(bool)), SLOT(slotDefaultToggled(bool)) );
+ mDefault = new TQCheckBox( i18n("&Use global cleanup configuration"), this );
+ connect( mDefault, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotDefaultToggled(bool)) );
top->addWidget( mDefault );
}
- mExpGroup = new QGroupBox( i18n("Newsgroup Cleanup Settings"), this );
+ mExpGroup = new TQGroupBox( i18n("Newsgroup Cleanup Settings"), this );
mExpGroup->setColumnLayout(0, Qt::Vertical );
mExpGroup->layout()->setSpacing( KDialog::spacingHint() );
mExpGroup->layout()->setMargin( KDialog::marginHint() );
top->addWidget( mExpGroup );
- QGridLayout *grid = new QGridLayout( mExpGroup->layout(), 7, 2 );
+ TQGridLayout *grid = new TQGridLayout( mExpGroup->layout(), 7, 2 );
grid->setRowSpacing( 0, KDialog::spacingHint() );
- mExpEnabled = new QCheckBox( i18n("&Expire old articles automatically"), mExpGroup );
+ mExpEnabled = new TQCheckBox( i18n("&Expire old articles automatically"), mExpGroup );
grid->addMultiCellWidget( mExpEnabled, 1, 1, 0, 1 );
- connect( mExpEnabled, SIGNAL(toggled(bool)), SIGNAL(changed()) );
+ connect( mExpEnabled, TQT_SIGNAL(toggled(bool)), TQT_SIGNAL(changed()) );
mExpDays = new KIntSpinBox( 0, 99999, 1, 0, 10, mExpGroup );
- QLabel *label = new QLabel( mExpDays, i18n("&Purge groups every:"), mExpGroup );
+ TQLabel *label = new TQLabel( mExpDays, i18n("&Purge groups every:"), mExpGroup );
grid->addWidget( label, 2, 0 );
grid->addWidget( mExpDays, 2, 1, Qt::AlignRight );
- connect( mExpDays, SIGNAL(valueChanged(int)), SIGNAL(changed()) );
- connect( mExpDays, SIGNAL(valueChanged(int)), SLOT(expDaysChanged(int)) );
- connect( mExpEnabled, SIGNAL(toggled(bool)), label, SLOT(setEnabled(bool)) );
- connect( mExpEnabled, SIGNAL(toggled(bool)), mExpDays, SLOT(setEnabled(bool)) );
+ connect( mExpDays, TQT_SIGNAL(valueChanged(int)), TQT_SIGNAL(changed()) );
+ connect( mExpDays, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(expDaysChanged(int)) );
+ connect( mExpEnabled, TQT_SIGNAL(toggled(bool)), label, TQT_SLOT(setEnabled(bool)) );
+ connect( mExpEnabled, TQT_SIGNAL(toggled(bool)), mExpDays, TQT_SLOT(setEnabled(bool)) );
mExpReadDays = new KIntSpinBox( 0, 99999, 1, 0, 10, mExpGroup );
- label = new QLabel( mExpReadDays, i18n("&Keep read articles:"), mExpGroup );
+ label = new TQLabel( mExpReadDays, i18n("&Keep read articles:"), mExpGroup );
grid->addWidget( label, 3, 0 );
grid->addWidget( mExpReadDays, 3, 1, Qt::AlignRight );
- connect( mExpReadDays, SIGNAL(valueChanged(int)), SIGNAL(changed()) );
- connect( mExpReadDays, SIGNAL(valueChanged(int)), SLOT(expReadDaysChanged(int)) );
+ connect( mExpReadDays, TQT_SIGNAL(valueChanged(int)), TQT_SIGNAL(changed()) );
+ connect( mExpReadDays, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(expReadDaysChanged(int)) );
mExpUnreadDays = new KIntSpinBox( 0, 99999, 1, 0, 10, mExpGroup );
- label = new QLabel( mExpUnreadDays, i18n("Keep u&nread articles:"), mExpGroup );
+ label = new TQLabel( mExpUnreadDays, i18n("Keep u&nread articles:"), mExpGroup );
grid->addWidget( label, 4, 0 );
grid->addWidget( mExpUnreadDays, 4, 1, Qt::AlignRight );
- connect( mExpUnreadDays, SIGNAL(valueChanged(int)), SIGNAL(changed()) );
- connect( mExpUnreadDays, SIGNAL(valueChanged(int)), SLOT(expUnreadDaysChanged(int)) );
+ connect( mExpUnreadDays, TQT_SIGNAL(valueChanged(int)), TQT_SIGNAL(changed()) );
+ connect( mExpUnreadDays, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(expUnreadDaysChanged(int)) );
- mExpUnavailable = new QCheckBox( i18n("&Remove articles that are not available on the server"), mExpGroup );
+ mExpUnavailable = new TQCheckBox( i18n("&Remove articles that are not available on the server"), mExpGroup );
grid->addMultiCellWidget( mExpUnavailable, 5, 5, 0, 1 );
- connect( mExpUnavailable, SIGNAL(toggled(bool)), SIGNAL(changed()) );
+ connect( mExpUnavailable, TQT_SIGNAL(toggled(bool)), TQT_SIGNAL(changed()) );
- mPreserveThreads = new QCheckBox( i18n("Preser&ve threads"), mExpGroup );
+ mPreserveThreads = new TQCheckBox( i18n("Preser&ve threads"), mExpGroup );
grid->addMultiCellWidget( mPreserveThreads, 6, 6, 0, 1 );
- connect( mPreserveThreads, SIGNAL(toggled(bool)), SIGNAL(changed()) );
+ connect( mPreserveThreads, TQT_SIGNAL(toggled(bool)), TQT_SIGNAL(changed()) );
grid->setColStretch(1,1);
}
@@ -2468,38 +2468,38 @@ void KNConfig::GroupCleanupWidget::slotDefaultToggled( bool state )
}
-KNConfig::CleanupWidget::CleanupWidget( QWidget *p, const char *n ) :
+KNConfig::CleanupWidget::CleanupWidget( TQWidget *p, const char *n ) :
KCModule( p, n ),
d_ata( knGlobals.configManager()->cleanup() )
{
- QVBoxLayout *topL=new QVBoxLayout(this, 5);
+ TQVBoxLayout *topL=new TQVBoxLayout(this, 5);
mGroupCleanup = new GroupCleanupWidget( d_ata, this );
topL->addWidget( mGroupCleanup );
- connect( mGroupCleanup, SIGNAL(changed()), SLOT(changed()) );
+ connect( mGroupCleanup, TQT_SIGNAL(changed()), TQT_SLOT(changed()) );
// === folders =========================================================
- QGroupBox *foldersB=new QGroupBox(i18n("Folders"), this);
+ TQGroupBox *foldersB=new TQGroupBox(i18n("Folders"), this);
foldersB->setColumnLayout(0, Qt::Vertical );
foldersB->layout()->setSpacing( KDialog::spacingHint() );
foldersB->layout()->setMargin( KDialog::marginHint() );
topL->addWidget(foldersB);
- QGridLayout *foldersL=new QGridLayout(foldersB->layout(), 3,2);
+ TQGridLayout *foldersL=new TQGridLayout(foldersB->layout(), 3,2);
foldersL->setRowSpacing( 0, KDialog::spacingHint() );
- f_olderCB=new QCheckBox(i18n("Co&mpact folders automatically"), foldersB);
- connect(f_olderCB, SIGNAL(toggled(bool)), this, SLOT(slotFolderCBtoggled(bool)));
+ f_olderCB=new TQCheckBox(i18n("Co&mpact folders automatically"), foldersB);
+ connect(f_olderCB, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotFolderCBtoggled(bool)));
foldersL->addMultiCellWidget(f_olderCB,1,1,0,1);
f_olderDays=new KIntSpinBox(0, 99999, 1, 0, 10, foldersB);
- f_olderDaysL=new QLabel(f_olderDays,i18n("P&urge folders every:"), foldersB);
+ f_olderDaysL=new TQLabel(f_olderDays,i18n("P&urge folders every:"), foldersB);
foldersL->addWidget(f_olderDaysL,2,0);
foldersL->addWidget(f_olderDays,2,1,Qt::AlignRight);
- connect(f_olderDays, SIGNAL(valueChanged(int)), SLOT(changed()));
- connect(f_olderDays, SIGNAL(valueChanged(int)), SLOT(slotFolderDaysChanged(int)));
+ connect(f_olderDays, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed()));
+ connect(f_olderDays, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotFolderDaysChanged(int)));
foldersL->setColStretch(1,1);
@@ -2551,22 +2551,22 @@ void KNConfig::CleanupWidget::slotFolderDaysChanged(int value)
//==============================================================================================================
/*
-KNConfig::CacheWidget::CacheWidget(Cache *d, QWidget *p, const char *n)
+KNConfig::CacheWidget::CacheWidget(Cache *d, TQWidget *p, const char *n)
: KCModule p, n), d_ata(d)
{
- QVBoxLayout *topL=new QVBoxLayout(this, 5);
+ TQVBoxLayout *topL=new TQVBoxLayout(this, 5);
// memory
- QGroupBox *memGB=new QGroupBox(i18n("Memory Cache"), this);
+ TQGroupBox *memGB=new TQGroupBox(i18n("Memory Cache"), this);
topL->addWidget(memGB);
- QGridLayout *memL=new QGridLayout(memGB, 3,2, 8,5);
+ TQGridLayout *memL=new TQGridLayout(memGB, 3,2, 8,5);
memL->addRowSpacing(0, fontMetrics().lineSpacing()-4);
- memL->addWidget(new QLabel(i18n("Max articles to keep:"), memGB), 1,0);
+ memL->addWidget(new TQLabel(i18n("Max articles to keep:"), memGB), 1,0);
m_emMaxArt=new KIntSpinBox(0, 99999, 1, 1, 10, memGB);
memL->addWidget(m_emMaxArt, 1,1);
- memL->addWidget(new QLabel(i18n("Max memory usage:"), memGB), 2,0);
+ memL->addWidget(new TQLabel(i18n("Max memory usage:"), memGB), 2,0);
m_emMaxKB=new KIntSpinBox(0, 99999, 1, 1, 10, memGB);
m_emMaxKB->setSuffix(" KB");
memL->addWidget(m_emMaxKB, 2,1);
@@ -2575,17 +2575,17 @@ KNConfig::CacheWidget::CacheWidget(Cache *d, QWidget *p, const char *n)
// disk
- QGroupBox *diskGB=new QGroupBox(i18n("Disk Cache"), this);
+ TQGroupBox *diskGB=new TQGroupBox(i18n("Disk Cache"), this);
topL->addWidget(diskGB);
- QGridLayout *diskL=new QGridLayout(diskGB, 3,2, 8,5);
+ TQGridLayout *diskL=new TQGridLayout(diskGB, 3,2, 8,5);
diskL->addRowSpacing(0, fontMetrics().lineSpacing()-4);
- d_iskMaxArtL=new QLabel(i18n("Max articles to keep:"), diskGB);
+ d_iskMaxArtL=new TQLabel(i18n("Max articles to keep:"), diskGB);
diskL->addWidget(d_iskMaxArtL, 2,0);
d_iskMaxArt=new KIntSpinBox(0, 99999, 1, 1, 10, diskGB);
diskL->addWidget(d_iskMaxArt, 2,1);
- d_iskMaxKBL=new QLabel(i18n("Max disk usage:"), diskGB);
+ d_iskMaxKBL=new TQLabel(i18n("Max disk usage:"), diskGB);
diskL->addWidget(d_iskMaxKBL, 3,0);
d_iskMaxKB=new KIntSpinBox(0, 99999, 1, 1, 10, diskGB);
d_iskMaxKB->setSuffix(" KB");