diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /konqueror/sidebar/trees/history_module/kcmhistory.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konqueror/sidebar/trees/history_module/kcmhistory.cpp')
-rw-r--r-- | konqueror/sidebar/trees/history_module/kcmhistory.cpp | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/konqueror/sidebar/trees/history_module/kcmhistory.cpp b/konqueror/sidebar/trees/history_module/kcmhistory.cpp index e4b31b232..ccedf65d9 100644 --- a/konqueror/sidebar/trees/history_module/kcmhistory.cpp +++ b/konqueror/sidebar/trees/history_module/kcmhistory.cpp @@ -20,11 +20,11 @@ * along with this program; if not, write to the Free Software */ -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qlayout.h> -#include <qpushbutton.h> -#include <qradiobutton.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqlayout.h> +#include <tqpushbutton.h> +#include <tqradiobutton.h> #include <dcopclient.h> #include <dcopref.h> @@ -45,10 +45,10 @@ #include "kcmhistory.h" #include "history_settings.h" -typedef KGenericFactory<HistorySidebarConfig, QWidget > KCMHistoryFactory; +typedef KGenericFactory<HistorySidebarConfig, TQWidget > KCMHistoryFactory; K_EXPORT_COMPONENT_FACTORY (kcm_history, KCMHistoryFactory("kcmhistory") ) -HistorySidebarConfig::HistorySidebarConfig( QWidget *parent, const char* name, const QStringList & ) +HistorySidebarConfig::HistorySidebarConfig( TQWidget *parent, const char* name, const TQStringList & ) : KCModule (KCMHistoryFactory::instance(), parent, name) { KGlobal::locale()->insertCatalogue("konqueror"); @@ -56,7 +56,7 @@ HistorySidebarConfig::HistorySidebarConfig( QWidget *parent, const char* name, c m_settings = new KonqSidebarHistorySettings( 0, "history settings" ); m_settings->readSettings( false ); - QVBoxLayout *topLayout = new QVBoxLayout(this, 0, KDialog::spacingHint()); + TQVBoxLayout *topLayout = new TQVBoxLayout(this, 0, KDialog::spacingHint()); dialog = new KonqSidebarHistoryDlg(this); dialog->spinEntries->setRange( 0, INT_MAX, 1, false ); @@ -75,33 +75,33 @@ HistorySidebarConfig::HistorySidebarConfig( QWidget *parent, const char* name, c dialog->comboOlder->insertItem( i18n("Days"), KonqSidebarHistorySettings::DAYS ); - connect( dialog->cbExpire, SIGNAL( toggled( bool )), - dialog->spinExpire, SLOT( setEnabled( bool ))); - connect( dialog->spinExpire, SIGNAL( valueChanged( int )), - this, SLOT( slotExpireChanged( int ))); - - connect( dialog->spinNewer, SIGNAL( valueChanged( int )), - SLOT( slotNewerChanged( int ))); - connect( dialog->spinOlder, SIGNAL( valueChanged( int )), - SLOT( slotOlderChanged( int ))); - - connect( dialog->btnFontNewer, SIGNAL( clicked() ), - SLOT( slotGetFontNewer() )); - connect( dialog->btnFontOlder, SIGNAL( clicked() ), - SLOT( slotGetFontOlder() )); - connect( dialog->btnClearHistory, SIGNAL( clicked() ), - SLOT( slotClearHistory() )); - - connect( dialog->cbDetailedTips, SIGNAL( toggled( bool )), - SLOT( configChanged() )); - connect( dialog->cbExpire, SIGNAL( toggled( bool )), - SLOT( configChanged() )); - connect( dialog->spinEntries, SIGNAL( valueChanged( int )), - SLOT( configChanged() )); - connect( dialog->comboNewer, SIGNAL( activated( int )), - SLOT( configChanged() )); - connect( dialog->comboOlder, SIGNAL( activated( int )), - SLOT( configChanged() )); + connect( dialog->cbExpire, TQT_SIGNAL( toggled( bool )), + dialog->spinExpire, TQT_SLOT( setEnabled( bool ))); + connect( dialog->spinExpire, TQT_SIGNAL( valueChanged( int )), + this, TQT_SLOT( slotExpireChanged( int ))); + + connect( dialog->spinNewer, TQT_SIGNAL( valueChanged( int )), + TQT_SLOT( slotNewerChanged( int ))); + connect( dialog->spinOlder, TQT_SIGNAL( valueChanged( int )), + TQT_SLOT( slotOlderChanged( int ))); + + connect( dialog->btnFontNewer, TQT_SIGNAL( clicked() ), + TQT_SLOT( slotGetFontNewer() )); + connect( dialog->btnFontOlder, TQT_SIGNAL( clicked() ), + TQT_SLOT( slotGetFontOlder() )); + connect( dialog->btnClearHistory, TQT_SIGNAL( clicked() ), + TQT_SLOT( slotClearHistory() )); + + connect( dialog->cbDetailedTips, TQT_SIGNAL( toggled( bool )), + TQT_SLOT( configChanged() )); + connect( dialog->cbExpire, TQT_SIGNAL( toggled( bool )), + TQT_SLOT( configChanged() )); + connect( dialog->spinEntries, TQT_SIGNAL( valueChanged( int )), + TQT_SLOT( configChanged() )); + connect( dialog->comboNewer, TQT_SIGNAL( activated( int )), + TQT_SLOT( configChanged() )); + connect( dialog->comboOlder, TQT_SIGNAL( activated( int )), + TQT_SLOT( configChanged() )); dialog->show(); topLayout->add(dialog); @@ -152,17 +152,17 @@ void HistorySidebarConfig::save() config.writeEntry( "Maximum of History entries", count ); config.writeEntry( "Maximum age of History entries", age ); - QByteArray dataAge; - QDataStream streamAge( dataAge, IO_WriteOnly ); + TQByteArray dataAge; + TQDataStream streamAge( dataAge, IO_WriteOnly ); streamAge << age << "foo"; kapp->dcopClient()->send( "konqueror*", "KonqHistoryManager", - "notifyMaxAge(Q_UINT32, QCString)", dataAge ); + "notifyMaxAge(Q_UINT32, TQCString)", dataAge ); - QByteArray dataCount; - QDataStream streamCount( dataCount, IO_WriteOnly ); + TQByteArray dataCount; + TQDataStream streamCount( dataCount, IO_WriteOnly ); streamCount << count << "foo"; kapp->dcopClient()->send( "konqueror*", "KonqHistoryManager", - "notifyMaxCount(Q_UINT32, QCString)", dataCount ); + "notifyMaxCount(Q_UINT32, TQCString)", dataCount ); m_settings->m_valueYoungerThan = dialog->spinNewer->value(); m_settings->m_valueOlderThan = dialog->spinOlder->value(); @@ -194,14 +194,14 @@ void HistorySidebarConfig::defaults() dialog->cbDetailedTips->setChecked( true ); - m_fontNewer = QFont(); + m_fontNewer = TQFont(); m_fontNewer.setItalic( true ); - m_fontOlder = QFont(); + m_fontOlder = TQFont(); emit changed(true); } -QString HistorySidebarConfig::quickHelp() const +TQString HistorySidebarConfig::quickHelp() const { return i18n("<h1>History Sidebar</h1>" " You can configure the history sidebar here."); |