diff options
author | Ray-V <[email protected]> | 2021-02-10 10:59:53 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-02-10 10:59:53 +0900 |
commit | d1fca948cfde3b711652e69e03084908facc9f83 (patch) | |
tree | 7c8d064683714e8dfe13bfa4e8a25bfdb1b6de58 /src | |
parent | a83b892beb3b5d8b30332262dcb2c808ec089b5b (diff) | |
download | kvkbd-d1fca948cfde3b711652e69e03084908facc9f83.tar.gz kvkbd-d1fca948cfde3b711652e69e03084908facc9f83.zip |
Save and restore status of numpad between startups. This refers to PR #9.
Signed-off-by: Ray-V <[email protected]>
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/MainWidget.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/MainWidget.cpp b/src/MainWidget.cpp index 4008f49..0ca175b 100644 --- a/src/MainWidget.cpp +++ b/src/MainWidget.cpp @@ -76,6 +76,11 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const int stx=15; int sty=15; extent_visible=false; + TDEConfig *cfg = TDEApplication::kApplication()->config(); + if (cfg) + { + extent_visible = cfg->readBoolEntry("numpad_visible", false); + } // resize ( 550,235 ); // move(0,0); @@ -611,6 +616,7 @@ void MainWidget::hideEvent ( TQHideEvent * ) cfg = TDEApplication::kApplication()->config(); if (cfg){ cfg->writeEntry("geometry",geometry()); + cfg->writeEntry("numpad_visible",extent_visible); cfg->sync(); } } |