summaryrefslogtreecommitdiffstats
path: root/kpf/src/DirSelectWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpf/src/DirSelectWidget.cpp')
-rw-r--r--kpf/src/DirSelectWidget.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kpf/src/DirSelectWidget.cpp b/kpf/src/DirSelectWidget.cpp
index bd36ffeb..a405dcb0 100644
--- a/kpf/src/DirSelectWidget.cpp
+++ b/kpf/src/DirSelectWidget.cpp
@@ -21,8 +21,8 @@
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include <qdir.h>
-#include <qfileinfo.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
#include "DirSelectWidget.h"
#include "DirSelectWidget.moc"
@@ -33,13 +33,13 @@ namespace KPF
{
public:
- QString pathToMakeVisible;
+ TQString pathToMakeVisible;
};
DirSelectWidget::DirSelectWidget
(
- const QString & pathToMakeVisible,
- QWidget * parent,
+ const TQString & pathToMakeVisible,
+ TQWidget * parent,
const char * name
)
: KListView(parent, name)
@@ -52,11 +52,11 @@ namespace KPF
connect
(
this,
- SIGNAL(expanded(QListViewItem *)),
- SLOT(slotExpanded(QListViewItem *))
+ TQT_SIGNAL(expanded(TQListViewItem *)),
+ TQT_SLOT(slotExpanded(TQListViewItem *))
);
- QListViewItem * root = new QListViewItem(this, "/");
+ TQListViewItem * root = new TQListViewItem(this, "/");
root->setExpandable(true);
@@ -69,7 +69,7 @@ namespace KPF
}
void
- DirSelectWidget::timerEvent(QTimerEvent *)
+ DirSelectWidget::timerEvent(TQTimerEvent *)
{
killTimers();
@@ -78,32 +78,32 @@ namespace KPF
}
void
- DirSelectWidget::slotExpanded(QListViewItem * item)
+ DirSelectWidget::slotExpanded(TQListViewItem * item)
{
if (0 != item->firstChild())
return;
- QString p(path(item));
+ TQString p(path(item));
- QDir dir(p);
+ TQDir dir(p);
const QFileInfoList * entryInfoList =
- dir.entryInfoList(QDir::Dirs | QDir::Readable);
+ dir.entryInfoList(TQDir::Dirs | TQDir::Readable);
for (QFileInfoListIterator it(*entryInfoList); it.current(); ++it)
{
if (it.current()->isDir() && it.current()->isReadable())
{
- QListViewItem * i = new QListViewItem(item, it.current()->fileName());
+ TQListViewItem * i = new TQListViewItem(item, it.current()->fileName());
i->setExpandable(true);
}
}
}
QString
- DirSelectWidget::path(QListViewItem * item) const
+ DirSelectWidget::path(TQListViewItem * item) const
{
- QString ret(item->text(0));
+ TQString ret(item->text(0));
while (0 != (item = item->parent()))
ret.prepend("/" + item->text(0));