summaryrefslogtreecommitdiffstats
path: root/kcontrol/privacy
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kcontrol/privacy
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/privacy')
-rw-r--r--kcontrol/privacy/kprivacymanager.cpp38
-rw-r--r--kcontrol/privacy/kprivacymanager.h4
-rw-r--r--kcontrol/privacy/privacy.cpp88
-rw-r--r--kcontrol/privacy/privacy.h26
4 files changed, 78 insertions, 78 deletions
diff --git a/kcontrol/privacy/kprivacymanager.cpp b/kcontrol/privacy/kprivacymanager.cpp
index cad01a169..bbf5e088a 100644
--- a/kcontrol/privacy/kprivacymanager.cpp
+++ b/kcontrol/privacy/kprivacymanager.cpp
@@ -30,9 +30,9 @@
#include <krecentdocument.h>
#include <kstandarddirs.h>
-#include <qstringlist.h>
-#include <qfile.h>
-#include <qdir.h>
+#include <tqstringlist.h>
+#include <tqfile.h>
+#include <tqdir.h>
KPrivacyManager::KPrivacyManager()
{
@@ -52,22 +52,22 @@ bool KPrivacyManager::clearThumbnails()
// http://freedesktop.org/Standards/Home
// http://triq.net/~jens/thumbnail-spec/index.html
- QDir thumbnailDir( QDir::homeDirPath() + "/.thumbnails/normal");
- thumbnailDir.setFilter( QDir::Files );
- QStringList entries = thumbnailDir.entryList();
- for( QStringList::Iterator it = entries.begin() ; it != entries.end() ; ++it)
+ TQDir thumbnailDir( TQDir::homeDirPath() + "/.thumbnails/normal");
+ thumbnailDir.setFilter( TQDir::Files );
+ TQStringList entries = thumbnailDir.entryList();
+ for( TQStringList::Iterator it = entries.begin() ; it != entries.end() ; ++it)
if(!thumbnailDir.remove(*it)) m_error = true;
if(m_error) return m_error;
- thumbnailDir.setPath(QDir::homeDirPath() + "/.thumbnails/large");
+ thumbnailDir.setPath(TQDir::homeDirPath() + "/.thumbnails/large");
entries = thumbnailDir.entryList();
- for( QStringList::Iterator it = entries.begin() ; it != entries.end() ; ++it)
+ for( TQStringList::Iterator it = entries.begin() ; it != entries.end() ; ++it)
if(!thumbnailDir.remove(*it)) m_error = true;
if(m_error) return m_error;
- thumbnailDir.setPath(QDir::homeDirPath() + "/.thumbnails/fail");
+ thumbnailDir.setPath(TQDir::homeDirPath() + "/.thumbnails/fail");
entries = thumbnailDir.entryList();
- for( QStringList::Iterator it = entries.begin() ; it != entries.end() ; ++it)
+ for( TQStringList::Iterator it = entries.begin() ; it != entries.end() ; ++it)
if(!thumbnailDir.remove(*it)) m_error = true;
return m_error;
@@ -103,7 +103,7 @@ bool KPrivacyManager::clearSavedClipboardContents()
bool KPrivacyManager::clearFormCompletion() const
{
- QFile completionFile(locateLocal("data", "khtml/formcompletions"));
+ TQFile completionFile(locateLocal("data", "khtml/formcompletions"));
return completionFile.remove();
}
@@ -128,7 +128,7 @@ bool KPrivacyManager::clearQuickStartMenu() const
bool KPrivacyManager::clearWebHistory()
{
- QStringList args("--preload");
+ TQStringList args("--preload");
// preload Konqueror if it is not running
if(!isApplicationRegistered("konqueror"))
@@ -138,24 +138,24 @@ bool KPrivacyManager::clearWebHistory()
}
return kapp->dcopClient()->send( "konqueror*", "KonqHistoryManager",
- "notifyClear(QCString)", "" );
+ "notifyClear(TQCString)", "" );
}
bool KPrivacyManager::clearFavIcons()
{
- QDir favIconDir(KGlobal::dirs()->saveLocation( "cache", "favicons/" ));
- favIconDir.setFilter( QDir::Files );
+ TQDir favIconDir(KGlobal::dirs()->saveLocation( "cache", "favicons/" ));
+ favIconDir.setFilter( TQDir::Files );
- QStringList entries = favIconDir.entryList();
+ TQStringList entries = favIconDir.entryList();
// erase all files in favicon directory
- for( QStringList::Iterator it = entries.begin() ; it != entries.end() ; ++it)
+ for( TQStringList::Iterator it = entries.begin() ; it != entries.end() ; ++it)
if(!favIconDir.remove(*it)) m_error = true;
return m_error;
}
-bool KPrivacyManager::isApplicationRegistered(const QString &appName)
+bool KPrivacyManager::isApplicationRegistered(const TQString &appName)
{
QCStringList regApps = kapp->dcopClient()->registeredApplications();
diff --git a/kcontrol/privacy/kprivacymanager.h b/kcontrol/privacy/kprivacymanager.h
index 114618577..6d950c903 100644
--- a/kcontrol/privacy/kprivacymanager.h
+++ b/kcontrol/privacy/kprivacymanager.h
@@ -21,7 +21,7 @@
#ifndef KPRIVACYMANAGER_H
#define KPRIVACYMANAGER_H
-#include <qobject.h>
+#include <tqobject.h>
/**
@author Ralf Hoelzer
@@ -47,7 +47,7 @@ public:
bool clearFavIcons();
private:
- bool isApplicationRegistered(const QString &appName);
+ bool isApplicationRegistered(const TQString &appName);
bool m_error;
};
diff --git a/kcontrol/privacy/privacy.cpp b/kcontrol/privacy/privacy.cpp
index c0287ceba..c5d24397c 100644
--- a/kcontrol/privacy/privacy.cpp
+++ b/kcontrol/privacy/privacy.cpp
@@ -18,13 +18,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qptrlist.h>
-#include <qpushbutton.h>
-#include <qtabwidget.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqptrlist.h>
+#include <tqpushbutton.h>
+#include <tqtabwidget.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
#include <kaboutdata.h>
#include <kconfig.h>
@@ -37,7 +37,7 @@
#include "privacy.h"
-Privacy::Privacy(QWidget *parent, const char *name)
+Privacy::Privacy(TQWidget *parent, const char *name)
: KCModule(parent, name)
{
setQuickHelp( i18n("The privacy module allows a user to erase traces which KDE leaves on "
@@ -56,10 +56,10 @@ Privacy::Privacy(QWidget *parent, const char *name)
m_privacymanager = new KPrivacyManager();
- QBoxLayout *top = new QVBoxLayout(this, 0, KDialog::spacingHint());
+ TQBoxLayout *top = new TQVBoxLayout(this, 0, KDialog::spacingHint());
// add this once the P3P stuff is finished
- //QTabWidget *privacyTabs = new QTabWidget(this, "privacytabs");
+ //TQTabWidget *privacyTabs = new TQTabWidget(this, "privacytabs");
cleaningDialog = new KCMPrivacyDialog(this);
//p3pSettings = new KPrivacySettings(this);
@@ -78,7 +78,7 @@ Privacy::Privacy(QWidget *parent, const char *name)
sw->setRootIsDecorated(true);
sw->setTooltipColumn(1);
- sw->setColumnWidthMode(0, QListView::Maximum);
+ sw->setColumnWidthMode(0, TQListView::Maximum);
@@ -88,29 +88,29 @@ Privacy::Privacy(QWidget *parent, const char *name)
generalCLI->setOpen(true);
webbrowsingCLI->setOpen(true);
- clearThumbnails = new QCheckListItem(generalCLI,
- i18n("Thumbnail Cache"),QCheckListItem::CheckBox);
- clearRunCommandHistory = new QCheckListItem(generalCLI,
- i18n("Run Command History"),QCheckListItem::CheckBox);
- clearAllCookies = new QCheckListItem(webbrowsingCLI,
- i18n("Cookies"),QCheckListItem::CheckBox);
- clearSavedClipboardContents = new QCheckListItem(generalCLI,
- i18n("Saved Clipboard Contents"),QCheckListItem::CheckBox);
- clearWebHistory = new QCheckListItem(webbrowsingCLI,
- i18n("Web History"),QCheckListItem::CheckBox);
- clearWebCache = new QCheckListItem(webbrowsingCLI,
- i18n("Web Cache"),QCheckListItem::CheckBox);
- clearFormCompletion = new QCheckListItem(webbrowsingCLI,
- i18n("Form Completion Entries"),QCheckListItem::CheckBox);
- clearRecentDocuments = new QCheckListItem(generalCLI,
- i18n("Recent Documents"),QCheckListItem::CheckBox);
- clearQuickStartMenu = new QCheckListItem(generalCLI,
- i18n("Quick Start Menu"),QCheckListItem::CheckBox);
- clearFavIcons = new QCheckListItem(webbrowsingCLI,
- i18n("Favorite Icons"),QCheckListItem::CheckBox);
-
- QWhatsThis::add(sw, i18n("Check all cleanup actions you would like to perform. These will be executed by pressing the button below"));
- QWhatsThis::add(cleaningDialog->cleanupButton, i18n("Immediately performs the cleanup actions selected above"));
+ clearThumbnails = new TQCheckListItem(generalCLI,
+ i18n("Thumbnail Cache"),TQCheckListItem::CheckBox);
+ clearRunCommandHistory = new TQCheckListItem(generalCLI,
+ i18n("Run Command History"),TQCheckListItem::CheckBox);
+ clearAllCookies = new TQCheckListItem(webbrowsingCLI,
+ i18n("Cookies"),TQCheckListItem::CheckBox);
+ clearSavedClipboardContents = new TQCheckListItem(generalCLI,
+ i18n("Saved Clipboard Contents"),TQCheckListItem::CheckBox);
+ clearWebHistory = new TQCheckListItem(webbrowsingCLI,
+ i18n("Web History"),TQCheckListItem::CheckBox);
+ clearWebCache = new TQCheckListItem(webbrowsingCLI,
+ i18n("Web Cache"),TQCheckListItem::CheckBox);
+ clearFormCompletion = new TQCheckListItem(webbrowsingCLI,
+ i18n("Form Completion Entries"),TQCheckListItem::CheckBox);
+ clearRecentDocuments = new TQCheckListItem(generalCLI,
+ i18n("Recent Documents"),TQCheckListItem::CheckBox);
+ clearQuickStartMenu = new TQCheckListItem(generalCLI,
+ i18n("Quick Start Menu"),TQCheckListItem::CheckBox);
+ clearFavIcons = new TQCheckListItem(webbrowsingCLI,
+ i18n("Favorite Icons"),TQCheckListItem::CheckBox);
+
+ TQWhatsThis::add(sw, i18n("Check all cleanup actions you would like to perform. These will be executed by pressing the button below"));
+ TQWhatsThis::add(cleaningDialog->cleanupButton, i18n("Immediately performs the cleanup actions selected above"));
clearThumbnails->setText(1, i18n("Clears all cached thumbnails"));
clearRunCommandHistory->setText(1, i18n("Clears the history of commands run through the Run Command tool on the desktop"));
@@ -123,7 +123,7 @@ Privacy::Privacy(QWidget *parent, const char *name)
clearQuickStartMenu->setText(1, i18n("Clears the entries from the list of recently started applications"));
clearFavIcons->setText(1, i18n("Clears the FavIcons cached from visited websites"));
- connect(sw, SIGNAL(selectionChanged()), SLOT(changed()));
+ connect(sw, TQT_SIGNAL(selectionChanged()), TQT_SLOT(changed()));
// store all entries in a list for easy access later on
checklist.append(clearThumbnails);
@@ -137,9 +137,9 @@ Privacy::Privacy(QWidget *parent, const char *name)
checklist.append(clearQuickStartMenu);
checklist.append(clearFavIcons);
- connect(cleaningDialog->cleanupButton, SIGNAL(clicked()), SLOT(cleanup()));
- connect(cleaningDialog->selectAllButton, SIGNAL(clicked()), SLOT(selectAll()));
- connect(cleaningDialog->selectNoneButton, SIGNAL(clicked()), SLOT(selectNone()));
+ connect(cleaningDialog->cleanupButton, TQT_SIGNAL(clicked()), TQT_SLOT(cleanup()));
+ connect(cleaningDialog->selectAllButton, TQT_SIGNAL(clicked()), TQT_SLOT(selectAll()));
+ connect(cleaningDialog->selectNoneButton, TQT_SIGNAL(clicked()), TQT_SLOT(selectNone()));
load();
}
@@ -227,7 +227,7 @@ void Privacy::save()
void Privacy::selectAll()
{
- QCheckListItem *item;
+ TQCheckListItem *item;
for ( item = checklist.first(); item; item = checklist.next() )
item->setOn(true);
@@ -237,7 +237,7 @@ void Privacy::selectAll()
void Privacy::selectNone()
{
- QCheckListItem *item;
+ TQCheckListItem *item;
for ( item = checklist.first(); item; item = checklist.next() )
item->setOn(false);
@@ -253,14 +253,14 @@ void Privacy::cleanup()
cleaningDialog->statusTextEdit->clear();
cleaningDialog->statusTextEdit->setText(i18n("Starting cleanup..."));
- QCheckListItem *item;
+ TQCheckListItem *item;
bool error = false;
for ( item = checklist.first(); item; item = checklist.next() )
{
if(item->isOn())
{
- QString statusText = i18n("Clearing %1...").arg(item->text());
+ TQString statusText = i18n("Clearing %1...").arg(item->text());
cleaningDialog->statusTextEdit->append(statusText);
if(item == clearThumbnails)
@@ -295,7 +295,7 @@ void Privacy::cleanup()
if(error)
{
- QString errorText = i18n("Clearing of %1 failed").arg(item->text());
+ TQString errorText = i18n("Clearing of %1 failed").arg(item->text());
cleaningDialog->statusTextEdit->append(errorText);
}
}
@@ -309,7 +309,7 @@ void Privacy::cleanup()
extern "C"
{
- KDE_EXPORT KCModule *create_privacy(QWidget *parent, const char * /*name*/)
+ KDE_EXPORT KCModule *create_privacy(TQWidget *parent, const char * /*name*/)
{
KGlobal::locale()->insertCatalogue("privacy");
return new Privacy(parent, "Privacy");
diff --git a/kcontrol/privacy/privacy.h b/kcontrol/privacy/privacy.h
index fcec193c7..69b061f4c 100644
--- a/kcontrol/privacy/privacy.h
+++ b/kcontrol/privacy/privacy.h
@@ -33,7 +33,7 @@ class Privacy: public KCModule
Q_OBJECT
public:
- Privacy( QWidget *parent=0, const char *name=0 );
+ Privacy( TQWidget *parent=0, const char *name=0 );
~Privacy();
virtual void load();
@@ -51,22 +51,22 @@ private:
KPrivacySettings *p3pSettings;
KPrivacyManager *m_privacymanager;
- QPtrList<QCheckListItem> checklist;
+ TQPtrList<TQCheckListItem> checklist;
KListViewItem *generalCLI;
KListViewItem *webbrowsingCLI;
- QCheckListItem *clearThumbnails;
- QCheckListItem *clearRunCommandHistory;
- QCheckListItem *clearAllCookies;
- QCheckListItem *clearSavedClipboardContents;
- QCheckListItem *clearWebHistory;
- QCheckListItem *clearWebCache;
- QCheckListItem *clearFormCompletion;
- QCheckListItem *clearRecentDocuments;
- QCheckListItem *clearQuickStartMenu;
- QCheckListItem *clearFavIcons;
- //QCheckListItem *clearFileDialogHistory;
+ TQCheckListItem *clearThumbnails;
+ TQCheckListItem *clearRunCommandHistory;
+ TQCheckListItem *clearAllCookies;
+ TQCheckListItem *clearSavedClipboardContents;
+ TQCheckListItem *clearWebHistory;
+ TQCheckListItem *clearWebCache;
+ TQCheckListItem *clearFormCompletion;
+ TQCheckListItem *clearRecentDocuments;
+ TQCheckListItem *clearQuickStartMenu;
+ TQCheckListItem *clearFavIcons;
+ //TQCheckListItem *clearFileDialogHistory;
};