diff options
Diffstat (limited to 'smb4k/dialogs/smb4kbookmarkeditor.cpp')
-rw-r--r-- | smb4k/dialogs/smb4kbookmarkeditor.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/smb4k/dialogs/smb4kbookmarkeditor.cpp b/smb4k/dialogs/smb4kbookmarkeditor.cpp index b348e80..bec79e0 100644 --- a/smb4k/dialogs/smb4kbookmarkeditor.cpp +++ b/smb4k/dialogs/smb4kbookmarkeditor.cpp @@ -23,9 +23,9 @@ * MA 02110-1301 USA * ***************************************************************************/ -// Qt includes -#include <qlayout.h> -#include <qvaluelist.h> +// TQt includes +#include <tqlayout.h> +#include <tqvaluelist.h> // KDE includes #include <klocale.h> @@ -48,14 +48,14 @@ using namespace Smb4KGlobal; -Smb4KBookmarkEditor::Smb4KBookmarkEditor( QWidget *parent, const char *name ) -: KDialogBase( Plain, i18n( "Bookmark Editor" ), Ok|Cancel, Ok, parent, name, true, true ) +Smb4KBookmarkEditor::Smb4KBookmarkEditor( TQWidget *tqparent, const char *name ) +: KDialogBase( Plain, i18n( "Bookmark Editor" ), Ok|Cancel, Ok, tqparent, name, true, true ) { - setWFlags( Qt::WDestructiveClose ); + setWFlags( TQt::WDestructiveClose ); - QFrame *frame = plainPage(); - QGridLayout *layout = new QGridLayout( frame ); - layout->setSpacing( 5 ); + TQFrame *frame = plainPage(); + TQGridLayout *tqlayout = new TQGridLayout( frame ); + tqlayout->setSpacing( 5 ); m_view = new KListView( frame ); m_view->addColumn( i18n( "Bookmark" ), Bookmark ); @@ -71,31 +71,31 @@ Smb4KBookmarkEditor::Smb4KBookmarkEditor( QWidget *parent, const char *name ) m_collection = new KActionCollection( this, "BookmarkEditor_ActionCollection", KGlobal::instance() ); - (void) new KAction( i18n( "&Remove" ), "remove", Key_Delete, this, SLOT( slotRemoveClicked() ), m_collection, "remove_bookmark" ); + (void) new KAction( i18n( "&Remove" ), "remove", Key_Delete, TQT_TQOBJECT(this), TQT_SLOT( slotRemoveClicked() ), m_collection, "remove_bookmark" ); - (void) new KAction( i18n( "Remove &All" ), "editdelete", CTRL+Key_X, this, SLOT( slotDeleteAllClicked() ), m_collection, "remove_all_bookmarks" ); + (void) new KAction( i18n( "Remove &All" ), "editdelete", CTRL+Key_X, TQT_TQOBJECT(this), TQT_SLOT( slotDeleteAllClicked() ), m_collection, "remove_all_bookmarks" ); slotLoadBookmarks(); - layout->addWidget( m_view, 0, 0, 0 ); + tqlayout->addWidget( m_view, 0, 0, 0 ); setInitialSize( configDialogSize( *(Smb4KSettings::self()->config()), "BookmarkEditor" ) ); - setMinimumSize( (sizeHint().width() > 350 ? sizeHint().width() : 350), sizeHint().height() ); + setMinimumSize( (tqsizeHint().width() > 350 ? tqsizeHint().width() : 350), tqsizeHint().height() ); - connect( m_view, SIGNAL( rightButtonPressed( QListViewItem *, const QPoint &, int ) ), - this, SLOT( slotRightButtonPressed( QListViewItem *, const QPoint &, int ) ) ); + connect( m_view, TQT_SIGNAL( rightButtonPressed( TQListViewItem *, const TQPoint &, int ) ), + this, TQT_SLOT( slotRightButtonPressed( TQListViewItem *, const TQPoint &, int ) ) ); - connect( m_view, SIGNAL( itemRenamed( QListViewItem * ) ), - this, SLOT( slotItemRenamed( QListViewItem * ) ) ); + connect( m_view, TQT_SIGNAL( itemRenamed( TQListViewItem * ) ), + this, TQT_SLOT( slotItemRenamed( TQListViewItem * ) ) ); - connect( this, SIGNAL( okClicked() ), - this, SLOT( slotOkClicked() ) ); + connect( this, TQT_SIGNAL( okClicked() ), + this, TQT_SLOT( slotOkClicked() ) ); - connect( this, SIGNAL( cancelClicked() ), - this, SLOT( slotCancelClicked() ) ); + connect( this, TQT_SIGNAL( cancelClicked() ), + this, TQT_SLOT( slotCancelClicked() ) ); - connect( Smb4KCore::bookmarkHandler(), SIGNAL( bookmarksUpdated() ), - this, SLOT( slotLoadBookmarks() ) ); + connect( Smb4KCore::bookmarkHandler(), TQT_SIGNAL( bookmarksUpdated() ), + this, TQT_SLOT( slotLoadBookmarks() ) ); } @@ -113,10 +113,10 @@ Smb4KBookmarkEditor::~Smb4KBookmarkEditor() ///////////////////////////////////////////////////////////////////////////// -// SLOT IMPLEMENTATIONS +// TQT_SLOT IMPLEMENTATIONS ///////////////////////////////////////////////////////////////////////////// -void Smb4KBookmarkEditor::slotRightButtonPressed( QListViewItem *item, const QPoint &pos, int ) +void Smb4KBookmarkEditor::slotRightButtonPressed( TQListViewItem *item, const TQPoint &pos, int ) { if ( !item ) { @@ -140,7 +140,7 @@ void Smb4KBookmarkEditor::slotRightButtonPressed( QListViewItem *item, const QPo if ( !menu ) { - menu = new KActionMenu( this, "BookmarkEditorPopupMenu" ); + menu = new KActionMenu( TQT_TQOBJECT(this), "BookmarkEditorPopupMenu" ); menu->insert( m_collection->action( "remove_bookmark" ) ); menu->insert( m_collection->action( "remove_all_bookmarks" ) ); } @@ -185,11 +185,11 @@ void Smb4KBookmarkEditor::slotOkClicked() delete *it; } - QValueList<Smb4KBookmark *> bookmarks; + TQValueList<Smb4KBookmark *> bookmarks; if ( m_view->childCount() != 0 ) { - QListViewItemIterator it( m_view ); + TQListViewItemIterator it( m_view ); while( it.current() ) { @@ -226,9 +226,9 @@ void Smb4KBookmarkEditor::slotLoadBookmarks() { m_view->clear(); - QValueList<Smb4KBookmark *> bookmarks = Smb4KCore::bookmarkHandler()->getBookmarks(); + TQValueList<Smb4KBookmark *> bookmarks = Smb4KCore::bookmarkHandler()->getBookmarks(); - for ( QValueList<Smb4KBookmark *>::ConstIterator it = bookmarks.begin(); it != bookmarks.end(); ++it ) + for ( TQValueList<Smb4KBookmark *>::ConstIterator it = bookmarks.begin(); it != bookmarks.end(); ++it ) { KListViewItem *item = new KListViewItem( m_view ); item->setText( Bookmark, (*it)->bookmark() ); @@ -246,7 +246,7 @@ void Smb4KBookmarkEditor::slotLoadBookmarks() } -void Smb4KBookmarkEditor::slotItemRenamed( QListViewItem * ) +void Smb4KBookmarkEditor::slotItemRenamed( TQListViewItem * ) { // Adjust the columns: for ( int col = 0; col < m_view->columns(); col++ ) |