Fixed #98.
This commit is contained in:
parent
d2d23bda7f
commit
bb29352afc
@ -9,6 +9,7 @@ Fixed:
|
|||||||
|
|
||||||
Added:
|
Added:
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>Layout orientation of message list/viewer is now changeable via "View" menu (bug report #98).</li>
|
||||||
<li>Sort order/column in message list is now persistent (bug #97).</li>
|
<li>Sort order/column in message list is now persistent (bug #97).</li>
|
||||||
<li>Inline searching in feed/message list is now case insensitive and more polished (bug report #84).</li>
|
<li>Inline searching in feed/message list is now case insensitive and more polished (bug report #84).</li>
|
||||||
<li>Items in feed list (categories and feeds) now can be re-arranged via drag-drop functionality (issue report #91).</li>
|
<li>Items in feed list (categories and feeds) now can be re-arranged via drag-drop functionality (issue report #91).</li>
|
||||||
|
@ -133,6 +133,15 @@ void FeedMessageViewer::quit() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FeedMessageViewer::switchMessageSplitterOrientation() {
|
||||||
|
if (m_messageSplitter->orientation() == Qt::Vertical) {
|
||||||
|
m_messageSplitter->setOrientation(Qt::Horizontal);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
m_messageSplitter->setOrientation(Qt::Vertical);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void FeedMessageViewer::setToolBarsEnabled(bool enable) {
|
void FeedMessageViewer::setToolBarsEnabled(bool enable) {
|
||||||
m_toolBarsEnabled = enable;
|
m_toolBarsEnabled = enable;
|
||||||
m_toolBarFeeds->setVisible(enable);
|
m_toolBarFeeds->setVisible(enable);
|
||||||
@ -277,6 +286,8 @@ void FeedMessageViewer::createConnections() {
|
|||||||
SIGNAL(triggered()), m_messagesView, SLOT(selectPreviousItem()));
|
SIGNAL(triggered()), m_messagesView, SLOT(selectPreviousItem()));
|
||||||
connect(form_main->m_ui->m_actionDefragmentDatabase,
|
connect(form_main->m_ui->m_actionDefragmentDatabase,
|
||||||
SIGNAL(triggered()), this, SLOT(vacuumDatabase()));
|
SIGNAL(triggered()), this, SLOT(vacuumDatabase()));
|
||||||
|
connect(form_main->m_ui->m_actionSwitchMessageListOrientation, SIGNAL(triggered()),
|
||||||
|
this, SLOT(switchMessageSplitterOrientation()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void FeedMessageViewer::initialize() {
|
void FeedMessageViewer::initialize() {
|
||||||
@ -354,7 +365,6 @@ void FeedMessageViewer::initializeViews() {
|
|||||||
setTabOrder(m_messagesView, m_toolBarFeeds);
|
setTabOrder(m_messagesView, m_toolBarFeeds);
|
||||||
setTabOrder(m_toolBarFeeds, m_toolBarMessages);
|
setTabOrder(m_toolBarFeeds, m_toolBarMessages);
|
||||||
setTabOrder(m_toolBarMessages, m_messagesBrowser);
|
setTabOrder(m_toolBarMessages, m_messagesBrowser);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void FeedMessageViewer::vacuumDatabase() {
|
void FeedMessageViewer::vacuumDatabase() {
|
||||||
|
@ -83,6 +83,8 @@ class FeedMessageViewer : public TabContent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
void switchMessageSplitterOrientation();
|
||||||
|
|
||||||
// Enables/disables main toolbars or list headers.
|
// Enables/disables main toolbars or list headers.
|
||||||
void setToolBarsEnabled(bool enable);
|
void setToolBarsEnabled(bool enable);
|
||||||
void setListHeadersEnabled(bool enable);
|
void setListHeadersEnabled(bool enable);
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<addaction name="m_menuShowHide"/>
|
<addaction name="m_menuShowHide"/>
|
||||||
<addaction name="m_actionSwitchMainWindow"/>
|
<addaction name="m_actionSwitchMainWindow"/>
|
||||||
|
<addaction name="m_actionSwitchMessageListOrientation"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="m_menuTools">
|
<widget class="QMenu" name="m_menuTools">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
@ -628,6 +629,14 @@
|
|||||||
<string>&Backup database/settings</string>
|
<string>&Backup database/settings</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="m_actionSwitchMessageListOrientation">
|
||||||
|
<property name="text">
|
||||||
|
<string>Switch message list layout orientation</string>
|
||||||
|
</property>
|
||||||
|
<property name="shortcut">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
@ -236,15 +236,11 @@ void MessagesView::selectionChanged(const QItemSelection &selected,
|
|||||||
void MessagesView::loadFeeds(const QList<int> &feed_ids) {
|
void MessagesView::loadFeeds(const QList<int> &feed_ids) {
|
||||||
m_sourceModel->loadMessages(feed_ids);
|
m_sourceModel->loadMessages(feed_ids);
|
||||||
|
|
||||||
// Make sure that initial sorting is that unread messages are visible
|
|
||||||
// first.
|
|
||||||
// TODO: pokračovat, při stortovani uložit column a order
|
|
||||||
int col = qApp->settings()->value(APP_CFG_GUI, "default_sort_column_messages", MSG_DB_DCREATED_INDEX).toInt();
|
int col = qApp->settings()->value(APP_CFG_GUI, "default_sort_column_messages", MSG_DB_DCREATED_INDEX).toInt();
|
||||||
Qt::SortOrder ord = static_cast<Qt::SortOrder>(qApp->settings()->value(APP_CFG_GUI,
|
Qt::SortOrder ord = static_cast<Qt::SortOrder>(qApp->settings()->value(APP_CFG_GUI,
|
||||||
"default_sort_order_messages", Qt::DescendingOrder).toInt());
|
"default_sort_order_messages", Qt::DescendingOrder).toInt());
|
||||||
|
|
||||||
sortByColumn(col,
|
sortByColumn(col, ord);
|
||||||
ord);
|
|
||||||
|
|
||||||
// Messages are loaded, make sure that previously
|
// Messages are loaded, make sure that previously
|
||||||
// active message is not shown in browser.
|
// active message is not shown in browser.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user