summaryrefslogtreecommitdiffstats
path: root/konq-plugins/kuick/kmetamenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konq-plugins/kuick/kmetamenu.cpp')
-rw-r--r--konq-plugins/kuick/kmetamenu.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/konq-plugins/kuick/kmetamenu.cpp b/konq-plugins/kuick/kmetamenu.cpp
index 2b5d78a..451f127 100644
--- a/konq-plugins/kuick/kmetamenu.cpp
+++ b/konq-plugins/kuick/kmetamenu.cpp
@@ -36,9 +36,9 @@
#include "kimcontactmenu.h"
#include "kmetamenu.moc"
-KMetaMenu::KMetaMenu( TQWidget *parent, const KURL &url,
+KMetaMenu::KMetaMenu( TQWidget *tqparent, const KURL &url,
const TQString &text, const TQString &key, KIMProxy *imProxy )
-: TQPopupMenu( parent),
+: TQPopupMenu( tqparent),
m_root( 0 ), m_home( 0 ), m_etc( 0 ), m_current( 0 ), m_browse( 0 ) {
int recent_no;
group = key;
@@ -51,7 +51,7 @@ KMetaMenu::KMetaMenu( TQWidget *parent, const KURL &url,
u.setPath(TQDir::homeDirPath());
if ( kapp->authorizeURLAction("list", u, u) )
{
- m_home = new KDirMenu( parent, url, u.path() , text );
+ m_home = new KDirMenu( tqparent, url, u.path() , text );
insertItem( SmallIcon( "kfm_home" ), i18n("&Home Folder"), m_home);
dirList << u.path();
@@ -62,7 +62,7 @@ KMetaMenu::KMetaMenu( TQWidget *parent, const KURL &url,
u.setPath(TQDir::rootDirPath());
if ( kapp->authorizeURLAction("list", u, u) )
{
- m_root = new KDirMenu( parent, url, u.path() , text );
+ m_root = new KDirMenu( tqparent, url, u.path() , text );
insertItem( SmallIcon( "folder_red" ), i18n("&Root Folder"), m_root);
dirList << u.path();
@@ -75,7 +75,7 @@ KMetaMenu::KMetaMenu( TQWidget *parent, const KURL &url,
if ( TQFileInfo( confDir ).isWritable() &&
kapp->authorizeURLAction("list", u, u) )
{
- m_etc = new KDirMenu( parent, url, confDir, text );
+ m_etc = new KDirMenu( tqparent, url, confDir, text );
insertItem( SmallIcon( "folder_yellow" ) ,
i18n("&System Configuration"), m_etc);
dirList << confDir;
@@ -85,7 +85,7 @@ KMetaMenu::KMetaMenu( TQWidget *parent, const KURL &url,
}
if ( url.isLocalFile()
- && dirList.find( url.path() ) == dirList.end()
+ && dirList.tqfind( url.path() ) == dirList.end()
&& TQFileInfo( url.path() ).isWritable()
&& TQFileInfo( url.path() ).isDir()
&& kapp->authorizeURLAction("list", url, url) )
@@ -93,7 +93,7 @@ KMetaMenu::KMetaMenu( TQWidget *parent, const KURL &url,
//(#60192)
{
// Also add current working directory
- m_current = new KDirMenu( parent, url, url.path(), text );
+ m_current = new KDirMenu( tqparent, url, url.path(), text );
insertItem( SmallIcon( "folder" ), i18n( "&Current Folder" ),
m_current );
@@ -103,7 +103,7 @@ KMetaMenu::KMetaMenu( TQWidget *parent, const KURL &url,
if ( imProxy )
{
- m_contacts = new KIMContactMenu( parent, imProxy );
+ m_contacts = new KIMContactMenu( tqparent, imProxy );
int item = insertItem( SmallIconSet( "personal" ), i18n( "C&ontact" ), m_contacts );
connect ( m_contacts, TQT_SIGNAL( contactChosen( const TQString &) ), TQT_SIGNAL( contactChosen( const TQString & ) ) );
if ( !imProxy->initialize() || imProxy->fileTransferContacts().isEmpty() )
@@ -111,7 +111,7 @@ KMetaMenu::KMetaMenu( TQWidget *parent, const KURL &url,
}
- m_browse = new KAction(i18n("&Browse..."), 0, this, TQT_SLOT(slotBrowse()), this );
+ m_browse = new KAction(i18n("&Browse..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotBrowse()), TQT_TQOBJECT(this) );
m_browse->plug(this);
// read the last chosen dirs
// first set the group according to our parameter
@@ -133,7 +133,7 @@ KMetaMenu::KMetaMenu( TQWidget *parent, const KURL &url,
continue;
}
TQString escapedDir = *it;
- KAction *action = new KAction(escapedDir.replace("&", "&&"), 0, this, TQT_SLOT(slotFastPath()), this);
+ KAction *action = new KAction(escapedDir.tqreplace("&", "&&"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotFastPath()), TQT_TQOBJECT(this));
action->plug(this );
actions.append( action );
++it;