Commit fd9fc419 authored by Ivan Ilin's avatar Ivan Ilin

Sankore-341 Sankore-363 Sankore-365

parent cca8ac7f
...@@ -363,6 +363,7 @@ void UBSettings::init() ...@@ -363,6 +363,7 @@ void UBSettings::init()
intranetPodcastPublishingUrl = new UBSetting(this, "IntranetPodcast", "PublishingUrl", ""); intranetPodcastPublishingUrl = new UBSetting(this, "IntranetPodcast", "PublishingUrl", "");
intranetPodcastAuthor = new UBSetting(this, "IntranetPodcast", "Author", ""); intranetPodcastAuthor = new UBSetting(this, "IntranetPodcast", "Author", "");
KeyboardLocale = new UBSetting(this, "Board", "StartupKeyboardLocale", 0);
} }
......
...@@ -318,6 +318,8 @@ class UBSettings : public QObject ...@@ -318,6 +318,8 @@ class UBSettings : public QObject
static int libPaletteWidth; static int libPaletteWidth;
*/ */
UBSetting* KeyboardLocale;
public slots: public slots:
void setPenWidthIndex(int index); void setPenWidthIndex(int index);
......
...@@ -1938,7 +1938,7 @@ void UBGraphicsScene::keyReleaseEvent(QKeyEvent * keyEvent) ...@@ -1938,7 +1938,7 @@ void UBGraphicsScene::keyReleaseEvent(QKeyEvent * keyEvent)
QList<QGraphicsItem*> si = selectedItems(); QList<QGraphicsItem*> si = selectedItems();
if (si.size() > 0 && !keyEvent->isAccepted()) if ((si.size() > 0) && (keyEvent->isAccepted()))
{ {
#ifdef Q_OS_MAC #ifdef Q_OS_MAC
if (keyEvent->key() == Qt::Key_Backspace) if (keyEvent->key() == Qt::Key_Backspace)
......
...@@ -254,4 +254,6 @@ void UBDocumentThumbnailWidget::hightlightItem(int index) ...@@ -254,4 +254,6 @@ void UBDocumentThumbnailWidget::hightlightItem(int index)
if (thumbnail) if (thumbnail)
thumbnail->highlight(); thumbnail->highlight();
} }
selectItemAt(index);
} }
...@@ -54,7 +54,7 @@ UBKeyboardPalette::UBKeyboardPalette(QWidget *parent) ...@@ -54,7 +54,7 @@ UBKeyboardPalette::UBKeyboardPalette(QWidget *parent)
createCtrlButtons(); createCtrlButtons();
nCurrentLocale = 0; nCurrentLocale = UBSettings::settings()->KeyboardLocale->get().toInt();
setInput(locales[nCurrentLocale]); setInput(locales[nCurrentLocale]);
setContentsMargins( 22, 22, 22, 22 ); setContentsMargins( 22, 22, 22, 22 );
...@@ -166,6 +166,8 @@ void UBKeyboardPalette::setLocale(int nLocale) ...@@ -166,6 +166,8 @@ void UBKeyboardPalette::setLocale(int nLocale)
setInput(locales[nCurrentLocale]); setInput(locales[nCurrentLocale]);
onLocaleChanged(locales[nCurrentLocale]); onLocaleChanged(locales[nCurrentLocale]);
update(); update();
UBSettings::settings()->KeyboardLocale->set(nCurrentLocale);
} }
emit localeChanged(nLocale); emit localeChanged(nLocale);
} }
......
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