diff -Naur mythnews.orig/mythnews/mythnews.cpp mythnews/mythnews/mythnews.cpp
old
|
new
|
|
104 | 104 | setNoErase(); |
105 | 105 | loadTheme(); |
106 | 106 | |
| 107 | updateBackground(); |
| 108 | |
107 | 109 | // Now do the actual work |
108 | 110 | m_RetrieveTimer = new QTimer(this); |
109 | 111 | connect(m_RetrieveTimer, SIGNAL(timeout()), |
… |
… |
|
251 | 253 | updateStatusView(); |
252 | 254 | } |
253 | 255 | |
| 256 | void MythNews::updateBackground(void) |
| 257 | { |
| 258 | QPixmap bground(size()); |
| 259 | bground.fill(this, 0, 0); |
| 260 | |
| 261 | QPainter tmp(&bground); |
| 262 | |
| 263 | LayerSet *container = m_Theme->GetSet("background"); |
| 264 | if (container) |
| 265 | { |
| 266 | container->Draw(&tmp, 0, 0); |
| 267 | } |
| 268 | |
| 269 | tmp.end(); |
| 270 | m_background = bground; |
| 271 | |
| 272 | setPaletteBackgroundPixmap(m_background); |
| 273 | } |
254 | 274 | |
255 | 275 | void MythNews::updateSitesView() |
256 | 276 | { |
diff -Naur mythnews.orig/mythnews/mythnews.h mythnews/mythnews/mythnews.h
old
|
new
|
|
64 | 64 | void loadWindow(QDomElement &element); |
65 | 65 | void paintEvent(QPaintEvent *e); |
66 | 66 | |
| 67 | void updateBackground(); |
67 | 68 | void updateSitesView(); |
68 | 69 | void updateArticlesView(); |
69 | 70 | void updateInfoView(); |
… |
… |
|
90 | 91 | |
91 | 92 | XMLParse *m_Theme; |
92 | 93 | |
| 94 | QPixmap m_background; |
| 95 | |
93 | 96 | UIListBtnType *m_UISites; |
94 | 97 | UIListBtnType *m_UIArticles; |
95 | 98 | QRect m_SitesRect; |
diff -Naur mythnews.orig/mythnews/mythnewsconfig.cpp mythnews/mythnews/mythnewsconfig.cpp
old
|
new
|
|
132 | 132 | |
133 | 133 | setNoErase(); |
134 | 134 | loadTheme(); |
| 135 | updateBackground(); |
135 | 136 | } |
136 | 137 | |
137 | 138 | MythNewsConfig::~MythNewsConfig() |
… |
… |
|
342 | 343 | } |
343 | 344 | } |
344 | 345 | |
| 346 | void MythNewsConfig::updateBackground(void) |
| 347 | { |
| 348 | QPixmap bground(size()); |
| 349 | bground.fill(this, 0, 0); |
| 350 | |
| 351 | QPainter tmp(&bground); |
| 352 | |
| 353 | LayerSet *container = m_Theme->GetSet("background"); |
| 354 | if (container) |
| 355 | { |
| 356 | container->Draw(&tmp, 0, 0); |
| 357 | } |
| 358 | |
| 359 | tmp.end(); |
| 360 | m_background = bground; |
| 361 | |
| 362 | setPaletteBackgroundPixmap(m_background); |
| 363 | } |
345 | 364 | |
346 | 365 | void MythNewsConfig::updateSites() |
347 | 366 | { |
diff -Naur mythnews.orig/mythnews/mythnewsconfig.h mythnews/mythnews/mythnewsconfig.h
old
|
new
|
|
64 | 64 | void populateSites(); |
65 | 65 | void loadTheme(); |
66 | 66 | |
67 | | |
| 67 | void updateBackground(); |
68 | 68 | void updateSites(); |
69 | 69 | void updateFreq(); |
70 | 70 | void updateBot(); |
… |
… |
|
82 | 82 | MythNewsConfigPriv *m_priv; |
83 | 83 | |
84 | 84 | XMLParse *m_Theme; |
| 85 | |
| 86 | QPixmap m_background; |
| 87 | |
85 | 88 | uint m_Context; |
86 | 89 | uint m_InColumn; |
87 | 90 | |