diff options
author | Slávek Banko <[email protected]> | 2013-06-29 16:33:55 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-07-04 03:57:45 +0200 |
commit | f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db (patch) | |
tree | 0414ba9f0823b98d2a159c11513ddcda84b932cc /src/entrywidget.cpp | |
parent | 5f5e7c5455d52826b0bd50f64fcffb7695ce970d (diff) | |
download | kbibtex-f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db.tar.gz kbibtex-f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db.zip |
Initial TDE conversion
Diffstat (limited to 'src/entrywidget.cpp')
-rw-r--r-- | src/entrywidget.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/entrywidget.cpp b/src/entrywidget.cpp index 377ae7c..4d68f3e 100644 --- a/src/entrywidget.cpp +++ b/src/entrywidget.cpp @@ -31,13 +31,13 @@ #include <ntqtimer.h> #include <ntqlineedit.h> -#include <klocale.h> +#include <tdelocale.h> #include <kdebug.h> #include <kiconloader.h> -#include <kmessagebox.h> -#include <kapplication.h> -#include <kconfig.h> -#include <kwin.h> +#include <tdemessagebox.h> +#include <tdeapplication.h> +#include <tdeconfig.h> +#include <twin.h> #include <entry.h> #include <entryfield.h> @@ -113,7 +113,7 @@ namespace KBibTeX delete m_wqa; - KConfig * config = kapp->config(); + TDEConfig * config = kapp->config(); config->setGroup( "EntryWidget" ); saveWindowSize( config ); } @@ -125,7 +125,7 @@ namespace KBibTeX if ( ewt != NULL ) ewt->m_fieldLineEditTitle->setFocus(); - KConfig * config = kapp->config(); + TDEConfig * config = kapp->config(); config->setGroup( "EntryWidget" ); restoreWindowSize( config ); } @@ -350,7 +350,7 @@ namespace KBibTeX m_checkBoxEnableAll = new TQCheckBox( i18n( "Enable all &fields for editing" ), this ); layout->addMultiCellWidget( m_checkBoxEnableAll, 2, 2, 0, 4 ); - m_pushButtonRefetch = new TQPushButton( KGlobal::iconLoader() ->loadIconSet( "reload", KIcon::Small ), i18n( "Refetch" ), this ); + m_pushButtonRefetch = new TQPushButton( TDEGlobal::iconLoader() ->loadIconSet( "reload", TDEIcon::Small ), i18n( "Refetch" ), this ); layout->addWidget( m_pushButtonRefetch, 2, 5 ); connect( m_pushButtonRefetch, SIGNAL( clicked() ), this, SLOT( refreshFromURL() ) ); @@ -542,8 +542,8 @@ namespace KBibTeX m_lineEditID->setText( m_idToSuggestion[id] ); } - /* This function was taken form KMainWindow of KDE 3.5 and modified to fit KBibTeX */ - void EntryWidget::saveWindowSize( KConfig *config ) const + /* This function was taken form TDEMainWindow of KDE 3.5 and modified to fit KBibTeX */ + void EntryWidget::saveWindowSize( TDEConfig *config ) const { int scnum = TQApplication::desktop()->screenNumber( parentWidget() ); TQRect desk = TQApplication::desktop()->screenGeometry( scnum ); @@ -576,8 +576,8 @@ namespace KBibTeX config->writeEntry( heightString, h ); } - /* This function was taken form KMainWindow of KDE 3.5 and modified to fit KBibTeX */ - void EntryWidget::restoreWindowSize( KConfig *config ) + /* This function was taken form TDEMainWindow of KDE 3.5 and modified to fit KBibTeX */ + void EntryWidget::restoreWindowSize( TDEConfig *config ) { // restore the size int scnum = TQApplication::desktop()->screenNumber( parentWidget() ); |