Diffstat (limited to 'noncore/settings/backup/backuprestore.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/backup/backuprestore.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp index 5a4e284..eadfb63 100644 --- a/noncore/settings/backup/backuprestore.cpp +++ b/noncore/settings/backup/backuprestore.cpp @@ -21,32 +21,34 @@ _;:, .> :=|. This file is free software; you can -. .:....=;==+<; General Public License along with this file; -_. . . )=. = see the file COPYING. If not, write to the -- :-=` Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "backuprestore.h" #include "errordialog.h" /* OPIE */ -#include <qpe/qpeapplication.h> -#include <qpe/resource.h> -#include <qpe/config.h> #include <opie2/odebug.h> #include <opie2/odevice.h> #include <opie2/ostorageinfo.h> #include <opie2/ofiledialog.h> +#include <opie2/oresource.h> #include <opie2/owait.h> + +#include <qpe/qpeapplication.h> +#include <qpe/config.h> + using namespace Opie::Core; using namespace Opie::Ui; /* QT */ #include <qapplication.h> #include <qmultilineedit.h> #include <qdir.h> #include <qfile.h> #include <qfileinfo.h> #include <qlistview.h> #include <qpushbutton.h> #include <qradiobutton.h> @@ -224,30 +226,30 @@ QList<QListViewItem> BackupAndRestore::getAllItems(QListViewItem *item, QList<QL /** * Selects and unselects the item by setting the HEADER_BACKUP to B or !. * and changing the icon to match * @param currentItem the item to swich the selection choice. */ void BackupAndRestore::selectItem(QListViewItem *currentItem) { if(!currentItem) return; if(currentItem->text(HEADER_BACKUP) == "B") { - currentItem->setPixmap(HEADER_NAME, Resource::loadPixmap("backup/null")); + currentItem->setPixmap(HEADER_NAME, Opie::Core::OResource::loadPixmap("backup/null")); currentItem->setText(HEADER_BACKUP, ""); } else { - currentItem->setPixmap(HEADER_NAME, Resource::loadPixmap("backup/check")); + currentItem->setPixmap(HEADER_NAME, Opie::Core::OResource::loadPixmap("backup/check")); currentItem->setText(HEADER_BACKUP, "B"); } } void BackupAndRestore::scanForApplicationSettings() { QDir d( QDir::homeDirPath() + "/" + QString( applicationSettings->text(BACKUP_LOCATION) ) ); d.setFilter( QDir::Dirs | QDir::Files | QDir::NoSymLinks ); const QFileInfoList *list = d.entryInfoList(); QFileInfoListIterator it( *list ); QFileInfo *fi; while ( (fi=it.current()) ) |