diff options
Diffstat (limited to 'digikam/utilities/cameragui/camerafolderdialog.cpp')
-rw-r--r-- | digikam/utilities/cameragui/camerafolderdialog.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/digikam/utilities/cameragui/camerafolderdialog.cpp b/digikam/utilities/cameragui/camerafolderdialog.cpp index c5d72f57..36c31d54 100644 --- a/digikam/utilities/cameragui/camerafolderdialog.cpp +++ b/digikam/utilities/cameragui/camerafolderdialog.cpp @@ -21,11 +21,11 @@ * * ============================================================ */ -// Qt includes. +// TQt includes. -#include <qlabel.h> -#include <qlayout.h> -#include <qframe.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqframe.h> // KDE includes. @@ -45,11 +45,11 @@ namespace Digikam { -CameraFolderDialog::CameraFolderDialog(QWidget *parent, CameraIconView *cameraView, - const QStringList& cameraFolderList, - const QString& cameraName, const QString& rootPath) - : KDialogBase(parent, 0, true, - i18n("%1 - Select Camera Folder").arg(cameraName), +CameraFolderDialog::CameraFolderDialog(TQWidget *tqparent, CameraIconView *cameraView, + const TQStringList& cameraFolderList, + const TQString& cameraName, const TQString& rootPath) + : KDialogBase(tqparent, 0, true, + i18n("%1 - Select Camera Folder").tqarg(cameraName), Help|Ok|Cancel, Ok, true) { setHelp("camerainterface.anchor", "digikam"); @@ -57,12 +57,12 @@ CameraFolderDialog::CameraFolderDialog(QWidget *parent, CameraIconView *cameraVi m_rootPath = rootPath; - QFrame *page = makeMainWidget(); - QGridLayout* grid = new QGridLayout(page, 2, 1, 0, spacingHint()); + TQFrame *page = makeMainWidget(); + TQGridLayout* grid = new TQGridLayout(page, 2, 1, 0, spacingHint()); m_folderView = new CameraFolderView(page); - QLabel *logo = new QLabel(page); - QLabel *message = new QLabel(page); + TQLabel *logo = new TQLabel(page); + TQLabel *message = new TQLabel(page); KIconLoader* iconLoader = KApplication::kApplication()->iconLoader(); logo->setPixmap(iconLoader->loadIcon("digikam", KIcon::NoGroup, 128, KIcon::DefaultState, 0, true)); @@ -77,26 +77,26 @@ CameraFolderDialog::CameraFolderDialog(QWidget *parent, CameraIconView *cameraVi m_folderView->addVirtualFolder(cameraName); m_folderView->addRootFolder("/", cameraView->countItemsByFolder(rootPath)); - for (QStringList::const_iterator it = cameraFolderList.begin(); + for (TQStringList::const_iterator it = cameraFolderList.begin(); it != cameraFolderList.end(); ++it) { - QString folder(*it); - if (folder.startsWith(rootPath) && rootPath != QString("/")) + TQString folder(*it); + if (folder.startsWith(rootPath) && rootPath != TQString("/")) folder.remove(0, rootPath.length()); - if (folder != QString("/") && !folder.isEmpty()) + if (folder != TQString("/") && !folder.isEmpty()) { - QString root = folder.section( '/', 0, -2 ); - if (root.isEmpty()) root = QString("/"); + TQString root = folder.section( '/', 0, -2 ); + if (root.isEmpty()) root = TQString("/"); - QString sub = folder.section( '/', -1 ); + TQString sub = folder.section( '/', -1 ); m_folderView->addFolder(root, sub, cameraView->countItemsByFolder(*it)); DDebug() << "Camera folder: '" << folder << "' (root='" << root << "', sub='" <<sub <<"')" << endl; } } - connect(m_folderView, SIGNAL(signalFolderChanged(CameraFolderItem*)), - this, SLOT(slotFolderPathSelectionChanged(CameraFolderItem*))); + connect(m_folderView, TQT_SIGNAL(signalFolderChanged(CameraFolderItem*)), + this, TQT_SLOT(slotFolderPathSelectionChanged(CameraFolderItem*))); resize(500, 500); } @@ -105,17 +105,17 @@ CameraFolderDialog::~CameraFolderDialog() { } -QString CameraFolderDialog::selectedFolderPath() +TQString CameraFolderDialog::selectedFolderPath() { - QListViewItem *item = m_folderView->currentItem(); - if (!item) return QString(); + TQListViewItem *item = m_folderView->currentItem(); + if (!item) return TQString(); CameraFolderItem *folderItem = static_cast<CameraFolderItem *>(item); if (folderItem->isVirtualFolder()) - return QString(m_rootPath); + return TQString(m_rootPath); // Case of Gphoto2 cameras. No need to duplicate root '/'. - if (m_rootPath == QString("/")) + if (m_rootPath == TQString("/")) return(folderItem->folderPath()); return(m_rootPath + folderItem->folderPath()); |