summaryrefslogtreecommitdiffstats
path: root/kio/bookmarks/kbookmarkmenu_p.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kio/bookmarks/kbookmarkmenu_p.h
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kio/bookmarks/kbookmarkmenu_p.h')
-rw-r--r--kio/bookmarks/kbookmarkmenu_p.h118
1 files changed, 59 insertions, 59 deletions
diff --git a/kio/bookmarks/kbookmarkmenu_p.h b/kio/bookmarks/kbookmarkmenu_p.h
index 1c3f15ba8..6409a5f3e 100644
--- a/kio/bookmarks/kbookmarkmenu_p.h
+++ b/kio/bookmarks/kbookmarkmenu_p.h
@@ -24,10 +24,10 @@
#include <sys/types.h>
-#include <qptrlist.h>
-#include <qptrstack.h>
-#include <qobject.h>
-#include <qlistview.h>
+#include <tqptrlist.h>
+#include <tqptrstack.h>
+#include <tqobject.h>
+#include <tqlistview.h>
#include <kdialogbase.h>
#include <klocale.h>
@@ -54,19 +54,19 @@ class KPopupMenu;
class KImportedBookmarksActionMenu : public KActionMenu {
Q_OBJECT
- Q_PROPERTY( QString type READ type WRITE setType )
- Q_PROPERTY( QString location READ location WRITE setLocation )
+ Q_PROPERTY( TQString type READ type WRITE setType )
+ Q_PROPERTY( TQString location READ location WRITE setLocation )
public:
- const QString type() const { return m_type; }
- void setType(const QString &type) { m_type = type; }
- const QString location() const { return m_location; }
- void setLocation(const QString &location) { m_location = location; }
+ const TQString type() const { return m_type; }
+ void setType(const TQString &type) { m_type = type; }
+ const TQString location() const { return m_location; }
+ void setLocation(const TQString &location) { m_location = location; }
private:
- QString m_type;
- QString m_location;
+ TQString m_type;
+ TQString m_location;
public:
KImportedBookmarksActionMenu(
- const QString &text, const QString& sIconName,
+ const TQString &text, const TQString& sIconName,
KActionCollection* parent, const char* name)
: KActionMenu(text, sIconName, parent, name) {
;
@@ -75,23 +75,23 @@ public:
class KBookmarkActionMenu : public KActionMenu {
Q_OBJECT
- Q_PROPERTY( QString url READ url WRITE setUrl )
- Q_PROPERTY( QString address READ address WRITE setAddress )
+ Q_PROPERTY( TQString url READ url WRITE setUrl )
+ Q_PROPERTY( TQString address READ address WRITE setAddress )
Q_PROPERTY( bool readOnly READ readOnly WRITE setReadOnly )
public:
- const QString url() const { return m_url; }
- void setUrl(const QString &url) { m_url = url; }
- const QString address() const { return m_address; }
- void setAddress(const QString &address) { m_address = address; }
+ const TQString url() const { return m_url; }
+ void setUrl(const TQString &url) { m_url = url; }
+ const TQString address() const { return m_address; }
+ void setAddress(const TQString &address) { m_address = address; }
bool readOnly() const { return m_readOnly; }
void setReadOnly(bool readOnly) { m_readOnly = readOnly; }
private:
- QString m_url;
- QString m_address;
+ TQString m_url;
+ TQString m_address;
bool m_readOnly;
public:
KBookmarkActionMenu(
- const QString &text, const QString& sIconName,
+ const TQString &text, const TQString& sIconName,
KActionCollection* parent, const char* name)
: KActionMenu(text, sIconName, parent, name) {
;
@@ -100,26 +100,26 @@ public:
class KBookmarkAction : public KAction {
Q_OBJECT
- Q_PROPERTY( QString url READ url WRITE setUrl )
- Q_PROPERTY( QString address READ address WRITE setAddress )
+ Q_PROPERTY( TQString url READ url WRITE setUrl )
+ Q_PROPERTY( TQString address READ address WRITE setAddress )
public:
- const QString url() const { return m_url; }
- void setUrl(const QString &url) { m_url = url; }
- const QString address() const { return m_address; }
- void setAddress(const QString &address) { m_address = address; }
+ const TQString url() const { return m_url; }
+ void setUrl(const TQString &url) { m_url = url; }
+ const TQString address() const { return m_address; }
+ void setAddress(const TQString &address) { m_address = address; }
private:
- QString m_url;
- QString m_address;
+ TQString m_url;
+ TQString m_address;
public:
// KDE4: remove
KBookmarkAction(
- const QString& text, const QString& sIconName, const KShortcut& cut,
- const QObject* receiver, const char* slot,
+ const TQString& text, const TQString& sIconName, const KShortcut& cut,
+ const TQObject* receiver, const char* slot,
KActionCollection* parent, const char* name)
: KAction(text, sIconName, cut, receiver, slot, parent, name) {
}
KBookmarkAction(
- const QString& text, const QString& sIconName, const KShortcut& cut,
+ const TQString& text, const TQString& sIconName, const KShortcut& cut,
KActionCollection* parent, const char* name)
: KAction(text, sIconName, cut, parent, name) {
}
@@ -130,9 +130,9 @@ public:
typedef enum { FolderFieldsSet, BookmarkFieldsSet } FieldsSet;
KLineEdit * m_url;
KLineEdit * m_title;
- KBookmarkEditFields(QWidget *main, QBoxLayout *vbox, FieldsSet isFolder);
- void setName(const QString &str);
- void setLocation(const QString &str);
+ KBookmarkEditFields(TQWidget *main, TQBoxLayout *vbox, FieldsSet isFolder);
+ void setName(const TQString &str);
+ void setLocation(const TQString &str);
};
class KBookmarkEditDialog : public KDialogBase
@@ -142,27 +142,27 @@ class KBookmarkEditDialog : public KDialogBase
public:
typedef enum { ModifyMode, InsertionMode } BookmarkEditType;
- KBookmarkEditDialog( const QString& title, const QString& url, KBookmarkManager *, BookmarkEditType editType, const QString& address = QString::null,
- QWidget * = 0, const char * = 0, const QString& caption = i18n( "Add Bookmark" ) );
+ KBookmarkEditDialog( const TQString& title, const TQString& url, KBookmarkManager *, BookmarkEditType editType, const TQString& address = TQString::null,
+ TQWidget * = 0, const char * = 0, const TQString& caption = i18n( "Add Bookmark" ) );
- QString finalUrl() const;
- QString finalTitle() const;
- QString finalAddress() const;
+ TQString finalUrl() const;
+ TQString finalTitle() const;
+ TQString finalAddress() const;
protected slots:
void slotOk();
void slotCancel();
void slotUser1();
- void slotDoubleClicked(QListViewItem* item);
+ void slotDoubleClicked(TQListViewItem* item);
private:
- QWidget * m_main;
+ TQWidget * m_main;
KBookmarkEditFields * m_fields;
- QListView * m_folderTree;
- QPushButton * m_button;
+ TQListView * m_folderTree;
+ TQPushButton * m_button;
KBookmarkManager * m_mgr;
BookmarkEditType m_editType;
- QString m_address;
+ TQString m_address;
};
class KBookmarkFolderTreeItem : public QListViewItem
@@ -170,8 +170,8 @@ class KBookmarkFolderTreeItem : public QListViewItem
// make this an accessor
friend class KBookmarkFolderTree;
public:
- KBookmarkFolderTreeItem( QListView *, const KBookmark & );
- KBookmarkFolderTreeItem( KBookmarkFolderTreeItem *, QListViewItem *, const KBookmarkGroup & );
+ KBookmarkFolderTreeItem( TQListView *, const KBookmark & );
+ KBookmarkFolderTreeItem( KBookmarkFolderTreeItem *, TQListViewItem *, const KBookmarkGroup & );
private:
KBookmark m_bookmark;
};
@@ -179,10 +179,10 @@ private:
class KBookmarkFolderTree
{
public:
- static QListView* createTree( KBookmarkManager *, QWidget * = 0, const char * = 0, const QString& = QString::null );
- static void fillTree( QListView*, KBookmarkManager *, const QString& = QString::null );
- static QString selectedAddress( QListView* );
- static void setAddress( QListView *, const QString & );
+ static TQListView* createTree( KBookmarkManager *, TQWidget * = 0, const char * = 0, const TQString& = TQString::null );
+ static void fillTree( TQListView*, KBookmarkManager *, const TQString& = TQString::null );
+ static TQString selectedAddress( TQListView* );
+ static void setAddress( TQListView *, const TQString & );
};
class KBookmarkSettings
@@ -203,9 +203,9 @@ public:
static void begin_rmb_action(KBookmarkMenu *);
static void begin_rmb_action(KBookmarkBar *);
bool invalid( int val );
- KBookmark atAddress(const QString & address);
- void fillContextMenu( QPopupMenu* contextMenu, const QString & address, int val );
- void fillContextMenu2( QPopupMenu* contextMenu, const QString & address, int val );
+ KBookmark atAddress(const TQString & address);
+ void fillContextMenu( TQPopupMenu* contextMenu, const TQString & address, int val );
+ void fillContextMenu2( TQPopupMenu* contextMenu, const TQString & address, int val );
void slotRMBActionEditAt( int val );
void slotRMBActionProperties( int val );
void slotRMBActionInsert( int val );
@@ -213,12 +213,12 @@ public:
void slotRMBActionCopyLocation( int val );
void hidePopup();
public:
- QObject *recv;
+ TQObject *recv;
KBookmarkManager *m_pManager;
- QString s_highlightedAddress;
- QString m_parentAddress;
+ TQString s_highlightedAddress;
+ TQString m_parentAddress;
KBookmarkOwner *m_pOwner;
- QWidget *m_parentMenu;
+ TQWidget *m_parentMenu;
};
#endif