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,
|
* message filter with regular expressions,
|
||||||
* feed metadata fetching including icons,
|
* feed metadata fetching including icons,
|
||||||
* simple Adblock functionality,
|
* 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,
|
* ability to cleanup internal message database with various options,
|
||||||
* enhanced feed auto-updating with separate time intervals,
|
* enhanced feed auto-updating with separate time intervals,
|
||||||
* multiple data backend support,
|
* multiple data backend support,
|
||||||
|
@ -859,6 +859,7 @@ void FormSettings::saveInterface() {
|
|||||||
|
|
||||||
qApp->mainForm()->tabWidget()->checkTabBarVisibility();
|
qApp->mainForm()->tabWidget()->checkTabBarVisibility();
|
||||||
qApp->mainForm()->tabWidget()->feedMessageViewer()->refreshVisualProperties();
|
qApp->mainForm()->tabWidget()->feedMessageViewer()->refreshVisualProperties();
|
||||||
|
qApp->notification()->loadSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FormSettings::eventFilter(QObject *obj, QEvent *e) {
|
bool FormSettings::eventFilter(QObject *obj, QEvent *e) {
|
||||||
|
@ -258,7 +258,8 @@ void FeedMessageViewer::onFeedUpdatesFinished(FeedDownloadResults results) {
|
|||||||
|
|
||||||
if (!results.m_updatedFeeds.isEmpty()) {
|
if (!results.m_updatedFeeds.isEmpty()) {
|
||||||
// Now, inform about results via GUI message/notification.
|
// 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());
|
painter.setFont(font());
|
||||||
|
|
||||||
if (!underMouse()) {
|
if (!underMouse()) {
|
||||||
painter.setOpacity(0.8);
|
painter.setOpacity(0.88);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
painter.setOpacity(0.95);
|
painter.setOpacity(0.97);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw background.
|
// Draw background.
|
||||||
|
@ -40,8 +40,12 @@ class Notification : public QWidget {
|
|||||||
void notify(const QString &text, const QString &title, QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::Information,
|
void notify(const QString &text, const QString &title, QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::Information,
|
||||||
QObject *invokation_target = NULL, const char *invokation_slot = NULL);
|
QObject *invokation_target = NULL, const char *invokation_slot = NULL);
|
||||||
|
|
||||||
|
// Cancels display of the notification.
|
||||||
void cancel();
|
void cancel();
|
||||||
|
|
||||||
|
// Loads settings.
|
||||||
|
void loadSettings();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void paintEvent(QPaintEvent *event);
|
void paintEvent(QPaintEvent *event);
|
||||||
void mousePressEvent(QMouseEvent *event);
|
void mousePressEvent(QMouseEvent *event);
|
||||||
@ -53,7 +57,6 @@ class Notification : public QWidget {
|
|||||||
void clicked();
|
void clicked();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void loadSettings();
|
|
||||||
void setupWidget();
|
void setupWidget();
|
||||||
void updateGeometries();
|
void updateGeometries();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user