diff options
Diffstat (limited to 'digikam/libs/widgets/common/dlogoaction.cpp')
-rw-r--r-- | digikam/libs/widgets/common/dlogoaction.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/digikam/libs/widgets/common/dlogoaction.cpp b/digikam/libs/widgets/common/dlogoaction.cpp index e86bebf..d4b81ab 100644 --- a/digikam/libs/widgets/common/dlogoaction.cpp +++ b/digikam/libs/widgets/common/dlogoaction.cpp @@ -21,10 +21,10 @@ * * ============================================================ */ -// Qt includes. +// TQt includes. -#include <qtooltip.h> -#include <qpixmap.h> +#include <tqtooltip.h> +#include <tqpixmap.h> // KDE includes. @@ -43,14 +43,14 @@ namespace Digikam { -DLogoAction::DLogoAction(QObject* parent, const char* name) - : KAction(parent, name) +DLogoAction::DLogoAction(TQObject* tqparent, const char* name) + : KAction(tqparent, name) { setText("digikam.org"); setIcon("digikam"); } -int DLogoAction::plug(QWidget *widget, int index) +int DLogoAction::plug(TQWidget *widget, int index) { if (kapp && !kapp->authorizeKAction(name())) return -1; @@ -59,26 +59,26 @@ int DLogoAction::plug(QWidget *widget, int index) { KToolBar *bar = (KToolBar *)widget; int id = getToolButtonID(); - KURLLabel *pixmapLogo = new KURLLabel(Digikam::webProjectUrl(), QString(), bar); + KURLLabel *pixmapLogo = new KURLLabel(Digikam::webProjectUrl(), TQString(), bar); pixmapLogo->setMargin(0); pixmapLogo->setScaledContents(false); - pixmapLogo->setSizePolicy(QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum)); - QToolTip::add(pixmapLogo, i18n("Visit digiKam project website")); + pixmapLogo->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum)); + TQToolTip::add(pixmapLogo, i18n("Visit digiKam project website")); KGlobal::dirs()->addResourceType("banner-digikam", KGlobal::dirs()->kde_default("data") + "digikam/data"); - QString directory = KGlobal::dirs()->findResourceDir("banner-digikam", "banner-digikam.png"); - pixmapLogo->setPixmap(QPixmap( directory + "banner-digikam.png" )); - pixmapLogo->setFocusPolicy(QWidget::NoFocus); + TQString directory = KGlobal::dirs()->findResourceDir("banner-digikam", "banner-digikam.png"); + pixmapLogo->setPixmap(TQPixmap( directory + "banner-digikam.png" )); + pixmapLogo->setFocusPolicy(TQ_NoFocus); bar->insertWidget(id, pixmapLogo->width(), pixmapLogo); bar->alignItemRight(id); addContainer(bar, id); - connect(bar, SIGNAL(destroyed()), - this, SLOT(slotDestroyed())); + connect(bar, TQT_SIGNAL(destroyed()), + this, TQT_SLOT(slotDestroyed())); - connect(pixmapLogo, SIGNAL(leftClickedURL(const QString&)), - this, SLOT(slotProcessURL(const QString&))); + connect(pixmapLogo, TQT_SIGNAL(leftClickedURL(const TQString&)), + this, TQT_SLOT(slotProcessURL(const TQString&))); return containerCount() - 1; } @@ -88,7 +88,7 @@ int DLogoAction::plug(QWidget *widget, int index) return containerId; } -void DLogoAction::slotProcessURL(const QString& url) +void DLogoAction::slotProcessURL(const TQString& url) { KApplication::kApplication()->invokeBrowser(url); } |