Refactorings.

This commit is contained in:
Martin Rotter 2014-09-10 19:51:07 +02:00
parent acffb8cf4f
commit 63ca878b5c
4 changed files with 39 additions and 0 deletions

View File

@ -378,6 +378,12 @@ void FeedMessageViewer::initializeViews() {
// Add toolbar and main feeds/messages widget to main layout. // Add toolbar and main feeds/messages widget to main layout.
central_layout->addWidget(m_feedSplitter); central_layout->addWidget(m_feedSplitter);
setTabOrder(m_feedsView, m_messagesView);
setTabOrder(m_messagesView, m_toolBarFeeds);
setTabOrder(m_toolBarFeeds, m_toolBarMessages);
setTabOrder(m_toolBarMessages, m_messagesBrowser);
} }
void FeedMessageViewer::vacuumDatabase() { void FeedMessageViewer::vacuumDatabase() {

View File

@ -369,6 +369,9 @@ void FeedsView::deleteSelectedItem() {
// TODO: I do not need to update counts of all items here. // TODO: I do not need to update counts of all items here.
// Updating counts of parent item (feed) should be enough. // Updating counts of parent item (feed) should be enough.
updateCountsOfAllFeeds(true); updateCountsOfAllFeeds(true);
// TODO: při smazani itemu se neoznaci vedlejsi
selectionModel()->select(currentIndex(), QItemSelectionModel::Rows | QItemSelectionModel::SelectCurrent);
} }
else { else {
// Item WAS NOT removed, either database-related error occurred // Item WAS NOT removed, either database-related error occurred

View File

@ -47,6 +47,9 @@
<property name="text"> <property name="text">
<string>Type</string> <string>Type</string>
</property> </property>
<property name="buddy">
<cstring>m_cmbType</cstring>
</property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="1" column="1">
@ -61,6 +64,9 @@
<property name="text"> <property name="text">
<string>Encoding</string> <string>Encoding</string>
</property> </property>
<property name="buddy">
<cstring>m_cmbEncoding</cstring>
</property>
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="2" column="1">
@ -75,6 +81,9 @@
<property name="text"> <property name="text">
<string>Auto-update</string> <string>Auto-update</string>
</property> </property>
<property name="buddy">
<cstring>m_cmbAutoUpdateType</cstring>
</property>
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="3" column="1">
@ -144,6 +153,9 @@
<property name="text"> <property name="text">
<string>URL</string> <string>URL</string>
</property> </property>
<property name="buddy">
<cstring>m_txtUrl</cstring>
</property>
</widget> </widget>
</item> </item>
<item row="6" column="1"> <item row="6" column="1">
@ -272,6 +284,9 @@
<property name="text"> <property name="text">
<string>Fetch metadata</string> <string>Fetch metadata</string>
</property> </property>
<property name="buddy">
<cstring>m_btnFetchMetadata</cstring>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>

View File

@ -77,6 +77,9 @@
<property name="text"> <property name="text">
<string>Database driver</string> <string>Database driver</string>
</property> </property>
<property name="buddy">
<cstring>m_cmbDatabaseDriver</cstring>
</property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="1" column="1">
@ -161,6 +164,9 @@ Authors of this application are NOT responsible for lost data.</string>
<property name="text"> <property name="text">
<string>Hostname</string> <string>Hostname</string>
</property> </property>
<property name="buddy">
<cstring>m_txtMysqlHostname</cstring>
</property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="1">
@ -173,6 +179,9 @@ Authors of this application are NOT responsible for lost data.</string>
<property name="text"> <property name="text">
<string>Port</string> <string>Port</string>
</property> </property>
<property name="buddy">
<cstring>m_spinMysqlPort</cstring>
</property>
</widget> </widget>
</item> </item>
<item> <item>
@ -201,6 +210,9 @@ Authors of this application are NOT responsible for lost data.</string>
<property name="text"> <property name="text">
<string>Username</string> <string>Username</string>
</property> </property>
<property name="buddy">
<cstring>m_txtMysqlUsername</cstring>
</property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="1" column="1">
@ -211,6 +223,9 @@ Authors of this application are NOT responsible for lost data.</string>
<property name="text"> <property name="text">
<string>Password</string> <string>Password</string>
</property> </property>
<property name="buddy">
<cstring>m_txtMysqlPassword</cstring>
</property>
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="2" column="1">