mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-27 07:46:17 +01:00
Refactoring.
This commit is contained in:
parent
15fed666d9
commit
9df9a51df0
@ -77,6 +77,7 @@ WebBrowser::WebBrowser(QWidget *parent) : TabContent(parent),
|
||||
// Initialize the components and layout.
|
||||
initializeLayout();
|
||||
|
||||
setFocusProxy(m_txtLocation);
|
||||
setTabOrder(m_txtLocation, m_toolBar);
|
||||
setTabOrder(m_toolBar, m_webView);
|
||||
|
||||
|
@ -125,12 +125,16 @@ void Application::eliminateFirstRun(const QString &version) {
|
||||
}
|
||||
|
||||
void Application::setFeedReader(FeedReader *feed_reader) {
|
||||
m_feedReader = feed_reader;
|
||||
m_feedReader = feed_reader;
|
||||
|
||||
connect(m_feedReader->feedDownloader(), &FeedDownloader::updateStarted, this, &Application::onFeedUpdatesStarted);
|
||||
connect(m_feedReader->feedDownloader(), &FeedDownloader::updateProgress, this, &Application::onFeedUpdatesProgress);
|
||||
connect(m_feedReader->feedDownloader(), &FeedDownloader::updateFinished, this, &Application::onFeedUpdatesFinished);
|
||||
}
|
||||
|
||||
IconFactory *Application::icons() {
|
||||
if (m_icons == nullptr) {
|
||||
m_icons = new IconFactory(this);
|
||||
if (m_icons == nullptr) {
|
||||
m_icons = new IconFactory(this);
|
||||
}
|
||||
|
||||
return m_icons;
|
||||
|
Loading…
x
Reference in New Issue
Block a user