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