summaryrefslogtreecommitdiffstats
path: root/src/settingssearchurl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/settingssearchurl.cpp')
-rw-r--r--src/settingssearchurl.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/settingssearchurl.cpp b/src/settingssearchurl.cpp
index 3adfd6f..43bbfef 100644
--- a/src/settingssearchurl.cpp
+++ b/src/settingssearchurl.cpp
@@ -17,12 +17,12 @@
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qlabel.h>
-#include <qtooltip.h>
-#include <qheader.h>
-#include <qcombobox.h>
+#include <ntqlayout.h>
+#include <ntqlineedit.h>
+#include <ntqlabel.h>
+#include <ntqtooltip.h>
+#include <ntqheader.h>
+#include <ntqcombobox.h>
#include <kiconloader.h>
#include <klistview.h>
@@ -36,8 +36,8 @@
namespace KBibTeX
{
- SettingsSearchURL::SettingsSearchURL( QWidget *parent, const char *name )
- : QWidget( parent, name ), m_counter( 1 )
+ SettingsSearchURL::SettingsSearchURL( TQWidget *parent, const char *name )
+ : TQWidget( parent, name ), m_counter( 1 )
{
setupGUI();
}
@@ -52,7 +52,7 @@ namespace KBibTeX
{
Settings * settings = Settings::self();
settings->searchURLs.clear();
- for ( QListViewItemIterator it( m_listviewSearchURLs ); it.current(); it++ )
+ for ( TQListViewItemIterator it( m_listviewSearchURLs ); it.current(); it++ )
{
Settings::SearchURL *searchURL = new Settings::SearchURL;
searchURL->description = it.current() ->text( 0 );
@@ -67,7 +67,7 @@ namespace KBibTeX
Settings * settings = Settings::self();
m_listviewSearchURLs->clear();
- for ( QValueList<Settings::SearchURL*>::ConstIterator it = settings->searchURLs.begin(); it != settings->searchURLs.end(); ++it )
+ for ( TQValueList<Settings::SearchURL*>::ConstIterator it = settings->searchURLs.begin(); it != settings->searchURLs.end(); ++it )
{
KListViewItem *item = new KListViewItem( m_listviewSearchURLs, ( *it ) ->description, ( *it ) ->includeAuthor ? i18n( "Yes" ) : i18n( "No" ), ( *it ) ->url );
item->setPixmap( 0, SmallIcon( "html" ) );
@@ -83,7 +83,7 @@ namespace KBibTeX
void SettingsSearchURL::slotDelete()
{
- QListViewItem * item = m_listviewSearchURLs->selectedItem();
+ TQListViewItem * item = m_listviewSearchURLs->selectedItem();
if ( item != NULL )
{
m_listviewSearchURLs->removeItem( item );
@@ -94,7 +94,7 @@ namespace KBibTeX
void SettingsSearchURL::slotEdit()
{
- QListViewItem * item = m_listviewSearchURLs->selectedItem();
+ TQListViewItem * item = m_listviewSearchURLs->selectedItem();
if ( item != NULL )
{
urlDialog( item );
@@ -123,7 +123,7 @@ namespace KBibTeX
void SettingsSearchURL::setupGUI()
{
- QGridLayout * layout = new QGridLayout( this, 5, 2, 0, KDialog::spacingHint() );
+ TQGridLayout * layout = new TQGridLayout( this, 5, 2, 0, KDialog::spacingHint() );
layout->setRowStretch( 3, 1 );
layout->setColStretch( 0, 1 );
@@ -138,53 +138,53 @@ namespace KBibTeX
m_listviewSearchURLs->setMinimumWidth( 384 );
m_pushbuttonNew = new KPushButton( i18n( "search url", "New" ), this );
- m_pushbuttonNew->setIconSet( QIconSet( SmallIcon( "add" ) ) );
+ m_pushbuttonNew->setIconSet( TQIconSet( SmallIcon( "add" ) ) );
layout->addWidget( m_pushbuttonNew, 0, 1 );
m_pushbuttonEdit = new KPushButton( i18n( "search url", "Edit" ), this );
- m_pushbuttonEdit->setIconSet( QIconSet( SmallIcon( "edit" ) ) );
+ m_pushbuttonEdit->setIconSet( TQIconSet( SmallIcon( "edit" ) ) );
layout->addWidget( m_pushbuttonEdit, 1, 1 );
m_pushbuttonDelete = new KPushButton( i18n( "search url", "Delete" ), this );
- m_pushbuttonDelete->setIconSet( QIconSet( SmallIcon( "editdelete" ) ) );
+ m_pushbuttonDelete->setIconSet( TQIconSet( SmallIcon( "editdelete" ) ) );
layout->addWidget( m_pushbuttonDelete, 2, 1 );
m_pushbuttonReset = new KPushButton( i18n( "search url", "Reset" ), this );
- m_pushbuttonReset->setIconSet( QIconSet( SmallIcon( "reload" ) ) );
+ m_pushbuttonReset->setIconSet( TQIconSet( SmallIcon( "reload" ) ) );
layout->addWidget( m_pushbuttonReset, 4, 1 );
connect( m_pushbuttonNew, SIGNAL( clicked() ), this, SLOT( slotNew() ) );
connect( m_pushbuttonEdit, SIGNAL( clicked() ), this, SLOT( slotEdit() ) );
- connect( m_listviewSearchURLs, SIGNAL( doubleClicked( QListViewItem *, const QPoint &, int ) ), this, SLOT( slotEdit() ) );
+ connect( m_listviewSearchURLs, SIGNAL( doubleClicked( TQListViewItem *, const TQPoint &, int ) ), this, SLOT( slotEdit() ) );
connect( m_pushbuttonDelete, SIGNAL( clicked() ), this, SLOT( slotDelete() ) );
connect( m_pushbuttonReset, SIGNAL( clicked() ), this, SLOT( slotReset() ) );
- connect( m_listviewSearchURLs, SIGNAL( selectionChanged( QListViewItem * ) ), this, SLOT( updateGUI() ) );
- connect( m_listviewSearchURLs, SIGNAL( currentChanged( QListViewItem * ) ), this, SLOT( updateGUI() ) );
- connect( m_listviewSearchURLs, SIGNAL( onItem( QListViewItem * ) ), this, SLOT( updateGUI() ) );
+ connect( m_listviewSearchURLs, SIGNAL( selectionChanged( TQListViewItem * ) ), this, SLOT( updateGUI() ) );
+ connect( m_listviewSearchURLs, SIGNAL( currentChanged( TQListViewItem * ) ), this, SLOT( updateGUI() ) );
+ connect( m_listviewSearchURLs, SIGNAL( onItem( TQListViewItem * ) ), this, SLOT( updateGUI() ) );
updateGUI();
}
- void SettingsSearchURL::urlDialog( QListViewItem * item )
+ void SettingsSearchURL::urlDialog( TQListViewItem * item )
{
KDialogBase * dlg = new KDialogBase( this, "urldialog", TRUE, item == NULL ? i18n( "New URL" ) : i18n( "Edit URL" ), KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, TRUE );
- QWidget *container = new QWidget( dlg, "container" );
- QGridLayout *layout = new QGridLayout( container, 3, 2, 0, KDialog::spacingHint() );
- QLabel *label = new QLabel( i18n( "Description:" ), container );
+ TQWidget *container = new TQWidget( dlg, "container" );
+ TQGridLayout *layout = new TQGridLayout( container, 3, 2, 0, KDialog::spacingHint() );
+ TQLabel *label = new TQLabel( i18n( "Description:" ), container );
layout->addWidget( label, 0, 0 );
- QLineEdit *descr = new QLineEdit( container );
+ TQLineEdit *descr = new TQLineEdit( container );
label->setBuddy( descr );
layout->addWidget( descr, 0, 1 );
- label = new QLabel( i18n( "URL:" ), container );
+ label = new TQLabel( i18n( "URL:" ), container );
layout->addWidget( label, 1, 0 );
- QLineEdit *url = new QLineEdit( container );
+ TQLineEdit *url = new TQLineEdit( container );
layout->addWidget( url, 1, 1 );
label->setBuddy( url );
url->setMinimumWidth( 384 );
- QToolTip::add( url, i18n( "Within the URL, '%1' will be replaced by the search term." ) );
- label = new QLabel( i18n( "Include Author:" ), container );
+ TQToolTip::add( url, i18n( "Within the URL, '%1' will be replaced by the search term." ) );
+ label = new TQLabel( i18n( "Include Author:" ), container );
layout->addWidget( label, 2, 0 );
- QComboBox *cbIncludeAuthor = new QComboBox( FALSE, container );
+ TQComboBox *cbIncludeAuthor = new TQComboBox( FALSE, container );
layout->addWidget( cbIncludeAuthor, 2, 1 );
label->setBuddy( cbIncludeAuthor );
cbIncludeAuthor->insertItem( i18n( "Yes" ) );
@@ -199,7 +199,7 @@ namespace KBibTeX
cbIncludeAuthor->setCurrentItem( item->text( 1 ) == i18n( "Yes" ) ? 0 : 1 );
}
- if ( dlg->exec() == QDialog::Accepted )
+ if ( dlg->exec() == TQDialog::Accepted )
{
if ( item == NULL )
{