summaryrefslogtreecommitdiffstats
path: root/kpf/src/RootValidator.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kpf/src/RootValidator.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-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/RootValidator.cpp')
-rw-r--r--kpf/src/RootValidator.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kpf/src/RootValidator.cpp b/kpf/src/RootValidator.cpp
index 17d6a43a..00fae54d 100644
--- a/kpf/src/RootValidator.cpp
+++ b/kpf/src/RootValidator.cpp
@@ -21,23 +21,23 @@
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include <qfileinfo.h>
-#include <qdir.h>
+#include <tqfileinfo.h>
+#include <tqdir.h>
#include "RootValidator.h"
#include "WebServerManager.h"
namespace KPF
{
- RootValidator::RootValidator(QObject * parent, const char * name)
- : QValidator(parent, name)
+ RootValidator::RootValidator(TQObject * parent, const char * name)
+ : TQValidator(parent, name)
{
}
- QValidator::State
- RootValidator::validate(QString & input, int & /* unused */) const
+ TQValidator::State
+ RootValidator::validate(TQString & input, int & /* unused */) const
{
- QString root(input);
+ TQString root(input);
if ('/' == root.at(root.length() - 1))
{
@@ -49,13 +49,13 @@ namespace KPF
if (0 != WebServerManager::instance()->server(root))
return Intermediate;
- QFileInfo fi(root);
+ TQFileInfo fi(root);
if (!fi.isDir())
return Intermediate;
// Disabling disallowing of ~, on request.
-// if (fi.dirPath() == QDir::homeDirPath())
+// if (fi.dirPath() == TQDir::homeDirPath())
// return Intermediate;
return Acceptable;