diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kpf/src/DirSelectWidget.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpf/src/DirSelectWidget.cpp')
-rw-r--r-- | kpf/src/DirSelectWidget.cpp | 32 |
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)); |