File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,25 @@ function filterMessage() {
115
115
}
116
116
```
117
117
118
+ Use published element instead of updated element for ATOM entries (only).
119
+ ``` js
120
+ function filterMessage () {
121
+ // Read raw contents of message and
122
+ // convert to JSON.
123
+ json = utils .fromXmlToJson (msg .rawContents );
124
+ jsonObj = JSON .parse (json)
125
+
126
+ // Read published date and parse it.
127
+ publishedDate = jsonObj .entry .published .__text ;
128
+ parsedDate = utils .parseDateTime (publishedDate);
129
+
130
+ // Set new date/time for message and
131
+ // proceed.
132
+ msg .created = parsedDate;
133
+ return MessageObject .Accept ;
134
+ }
135
+ ```
136
+
118
137
Dump RAW data of each message to RSS Guard's [ debug output] ( Documentation.md#generating-debug-log-file ) .
119
138
``` js
120
139
function filterMessage () {
Original file line number Diff line number Diff line change @@ -22,7 +22,12 @@ void GuiUtilities::setLabelAsNotice(QLabel& label, bool is_warning) {
22
22
}
23
23
24
24
void GuiUtilities::applyDialogProperties (QWidget& widget, const QIcon& icon, const QString& title) {
25
- widget.setWindowFlags (/* Qt::MSWindowsFixedSizeDialogHint | */ Qt::Dialog | Qt::WindowSystemMenuHint | Qt::WindowTitleHint);
25
+ #if defined(Q_OS_WIN)
26
+ widget.setWindowFlags (Qt::Dialog | Qt::WindowTitleHint);
27
+ #else
28
+ widget.setWindowFlags (Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint);
29
+ #endif
30
+
26
31
widget.setWindowIcon (icon);
27
32
28
33
if (!title.isEmpty ()) {
You can’t perform that action at this time.
0 commit comments