diff options
Diffstat (limited to 'src/AuthDialog.cpp')
-rw-r--r-- | src/AuthDialog.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/AuthDialog.cpp b/src/AuthDialog.cpp index 7363ae9..e90a851 100644 --- a/src/AuthDialog.cpp +++ b/src/AuthDialog.cpp @@ -28,7 +28,7 @@ #include <TQtGui/TQStandardItemModel> #include <KDebug> -#include <KToolInvocation> +#include <TDEToolInvocation> #include <KUser> #include <PolkitTQt1/Authority> @@ -71,20 +71,20 @@ AuthDialog::AuthDialog(const TQString &actionId, } // loads the standard key icon - TQPixmap icon = KIconLoader::global()->loadIcon("dialog-password", - KIconLoader::NoGroup, - KIconLoader::SizeHuge, - KIconLoader::DefaultState); + TQPixmap icon = TDEIconLoader::global()->loadIcon("dialog-password", + TDEIconLoader::NoGroup, + TDEIconLoader::SizeHuge, + TDEIconLoader::DefaultState); // create a painter to paint the action icon over the key icon TQPainter painter(&icon); const int iconSize = icon.size().width(); // the the emblem icon to size 32 int overlaySize = 32; // try to load the action icon - const TQPixmap pixmap = KIconLoader::global()->loadIcon(iconName, - KIconLoader::NoGroup, + const TQPixmap pixmap = TDEIconLoader::global()->loadIcon(iconName, + TDEIconLoader::NoGroup, overlaySize, - KIconLoader::DefaultState, + TDEIconLoader::DefaultState, TQStringList(), 0, true); @@ -215,12 +215,12 @@ void AuthDialog::createUserCB(const PolkitTQt1::Identity::List &identities) display = user.loginName(); } - KIcon icon; + TDEIcon icon; // load user icon face if (!user.faceIconPath().isEmpty()) { - icon = KIcon(user.faceIconPath()); + icon = TDEIcon(user.faceIconPath()); } else { - icon = KIcon("user-identity"); + icon = TDEIcon("user-identity"); } // appends the user item userCB->addItem(icon, display, qVariantFromValue<TQString> (identity.toString())); @@ -294,10 +294,10 @@ void AuthDialog::showEvent(TQShowEvent *event) KNotification::Persistent | KNotification::CloseWhenWidgetActivated); kDebug() << "Notificate: " << notification->eventId(); notification->setText(m_message); - TQPixmap icon = KIconLoader::global()->loadIcon("dialog-password", - KIconLoader::NoGroup, - KIconLoader::SizeHuge, - KIconLoader::DefaultState); + TQPixmap icon = TDEIconLoader::global()->loadIcon("dialog-password", + TDEIconLoader::NoGroup, + TDEIconLoader::SizeHuge, + TDEIconLoader::DefaultState); notification->setPixmap(icon); notification->setActions(TQStringList() << i18n("Switch to dialog") << i18n("Cancel")); @@ -366,7 +366,7 @@ AuthDetails::AuthDetails(const PolkitTQt1::Details &details, void AuthDetails::openUrl(const TQString& url) { - KToolInvocation::invokeBrowser(url); + TDEToolInvocation::invokeBrowser(url); } void AuthDetails::openAction(const TQString &url) |