Save work.

This commit is contained in:
Martin Rotter 2016-01-09 18:30:39 +01:00
parent 107aa0d432
commit e41b62b16f
3 changed files with 4 additions and 5 deletions

View File

@ -61,12 +61,9 @@ void FeedDownloader::updateFeeds(const QList<Feed*> &feeds) {
emit finished(results);
}
FeedDownloadResults::FeedDownloadResults() : m_updatedFeeds(QList<QPair<QString,int> >()) {
}
QString FeedDownloadResults::overview(int how_many_feeds) {
qSort(m_updatedFeeds.begin(), m_updatedFeeds.end(), FeedDownloadResults::lessThan);

View File

@ -21,8 +21,8 @@
#include <QAbstractItemModel>
#include "core/message.h"
#include "services/abstract/rootitem.h"
#include "core/feeddownloader.h"
#include "services/abstract/rootitem.h"
class DatabaseCleaner;
class Category;
@ -40,6 +40,7 @@ class FeedsModel : public QAbstractItemModel {
explicit FeedsModel(QObject *parent = 0);
virtual ~FeedsModel();
// Access to DB cleaner.
DatabaseCleaner *databaseCleaner();
// Model implementation.
@ -55,6 +56,7 @@ class FeedsModel : public QAbstractItemModel {
Qt::DropActions supportedDropActions() const;
Qt::ItemFlags flags(const QModelIndex &index) const;
// Other subclassed methods.
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
QModelIndex index(int row, int column, const QModelIndex &parent) const;
QModelIndex parent(const QModelIndex &child) const;

View File

@ -159,7 +159,7 @@ void Application::restoreDatabaseSettings(bool restore_database, bool restore_se
void Application::processExecutionMessage(const QString &message) {
qDebug("Received '%s' execution message from another application instance.", qPrintable(message));
foreach (QString msg, message.split(ARGUMENTS_LIST_SEPARATOR)) {
foreach (const QString &msg, message.split(ARGUMENTS_LIST_SEPARATOR)) {
if (msg == APP_IS_RUNNING) {
showGuiMessage(APP_NAME, tr("Application is already running."), QSystemTrayIcon::Information);
mainForm()->display();