Commit ca27dbf2 authored by Eike Hein's avatar Eike Hein
Browse files

Update the Url Catcher's date column to match KLocale immediately on Platform 4.8.3+.

BUG:297440
parent cf370c59
......@@ -26,6 +26,9 @@ Changes since 1.4:
when showing it in a channel's chat text display, potentially causing the rest
of the line to be malformatted.
* Fixed a compilation problem on 64bit Windows.
* If built against KDE Platform v4.8.3 or higher, the date column in the Url
Catcher will now immediately reflect changes to the date format made in KDE's
System Settings application.
Changes from 1.4-beta1 to 1.4:
......
......@@ -191,6 +191,7 @@ void UrlCatcher::setupUrlTree()
m_urlTree->setModel(proxyModel);
connect(m_urlTree->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
this, SLOT(updateItemActionStates()));
connect(KGlobalSettings::self(), SIGNAL(settingsChanged(int)), this, SLOT(checkLocaleChanged(int)));
searchLine->setProxy(proxyModel);
......@@ -385,6 +386,19 @@ void UrlCatcher::clearUrlModel()
urlModel->removeRows(0, urlModel->rowCount());
}
void UrlCatcher::checkLocaleChanged(int category)
{
#if KDE_IS_VERSION(4,8,1)
if (category != KGlobalSettings::SETTINGS_LOCALE)
return;
Application* konvApp = static_cast<Application*>(kapp);
QStandardItemModel* urlModel = konvApp->getUrlModel();
m_urlTree->dataChanged(urlModel->index(0, 0), urlModel->index(urlModel->rowCount() - 1, 2));
#endif
}
void UrlCatcher::childAdjustFocus()
{
m_urlTree->setFocus();
......
......@@ -86,6 +86,7 @@ class UrlCatcher : public ChatWindow
void deleteSelectedUrls();
void saveUrlModel();
void clearUrlModel();
void checkLocaleChanged(int category);
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment