mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-23 14:11:44 +01:00
Save work.
This commit is contained in:
parent
107aa0d432
commit
e41b62b16f
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user