Refactoring.

This commit is contained in:
Martin Rotter 2016-08-15 11:09:03 +02:00
parent 15fed666d9
commit 9df9a51df0
2 changed files with 8 additions and 3 deletions

View File

@ -77,6 +77,7 @@ WebBrowser::WebBrowser(QWidget *parent) : TabContent(parent),
// Initialize the components and layout. // Initialize the components and layout.
initializeLayout(); initializeLayout();
setFocusProxy(m_txtLocation);
setTabOrder(m_txtLocation, m_toolBar); setTabOrder(m_txtLocation, m_toolBar);
setTabOrder(m_toolBar, m_webView); setTabOrder(m_toolBar, m_webView);

View File

@ -125,12 +125,16 @@ void Application::eliminateFirstRun(const QString &version) {
} }
void Application::setFeedReader(FeedReader *feed_reader) { 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() { IconFactory *Application::icons() {
if (m_icons == nullptr) { if (m_icons == nullptr) {
m_icons = new IconFactory(this); m_icons = new IconFactory(this);
} }
return m_icons; return m_icons;