mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-02-05 20:03:31 +01:00
Added more GUI messages, fixed loading of position, updated README.
This commit is contained in:
parent
0a9b98b3e1
commit
38c6c6b448
@ -70,7 +70,8 @@ RSS Guard is written in C++. It is pretty fast even with tons of messages loaded
|
||||
* message filter with regular expressions,
|
||||
* feed metadata fetching including icons,
|
||||
* simple Adblock functionality,
|
||||
* Google suggest for internal web browser location bar,
|
||||
* customized popup notifications,
|
||||
* Google-based auto-completion for internal web browser location bar,
|
||||
* ability to cleanup internal message database with various options,
|
||||
* enhanced feed auto-updating with separate time intervals,
|
||||
* multiple data backend support,
|
||||
|
@ -859,6 +859,7 @@ void FormSettings::saveInterface() {
|
||||
|
||||
qApp->mainForm()->tabWidget()->checkTabBarVisibility();
|
||||
qApp->mainForm()->tabWidget()->feedMessageViewer()->refreshVisualProperties();
|
||||
qApp->notification()->loadSettings();
|
||||
}
|
||||
|
||||
bool FormSettings::eventFilter(QObject *obj, QEvent *e) {
|
||||
|
@ -258,7 +258,8 @@ void FeedMessageViewer::onFeedUpdatesFinished(FeedDownloadResults results) {
|
||||
|
||||
if (!results.m_updatedFeeds.isEmpty()) {
|
||||
// Now, inform about results via GUI message/notification.
|
||||
qApp->showGuiMessage(tr("New messages downloaded"), results.getOverview(10), QSystemTrayIcon::Information);
|
||||
qApp->showGuiMessage(tr("New messages downloaded"), results.getOverview(10), QSystemTrayIcon::NoIcon,
|
||||
0, false, qApp->icons()->fromTheme(QSL("item-update-all")));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -147,10 +147,10 @@ void Notification::paintEvent(QPaintEvent *event) {
|
||||
painter.setFont(font());
|
||||
|
||||
if (!underMouse()) {
|
||||
painter.setOpacity(0.8);
|
||||
painter.setOpacity(0.88);
|
||||
}
|
||||
else {
|
||||
painter.setOpacity(0.95);
|
||||
painter.setOpacity(0.97);
|
||||
}
|
||||
|
||||
// Draw background.
|
||||
|
@ -40,8 +40,12 @@ class Notification : public QWidget {
|
||||
void notify(const QString &text, const QString &title, QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::Information,
|
||||
QObject *invokation_target = NULL, const char *invokation_slot = NULL);
|
||||
|
||||
// Cancels display of the notification.
|
||||
void cancel();
|
||||
|
||||
// Loads settings.
|
||||
void loadSettings();
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *event);
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
@ -53,7 +57,6 @@ class Notification : public QWidget {
|
||||
void clicked();
|
||||
|
||||
private:
|
||||
void loadSettings();
|
||||
void setupWidget();
|
||||
void updateGeometries();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user