summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRay-V <ray-v@inbox.lv>2021-02-10 10:59:53 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-02-10 10:59:53 +0900
commitd1fca948cfde3b711652e69e03084908facc9f83 (patch)
tree7c8d064683714e8dfe13bfa4e8a25bfdb1b6de58
parenta83b892beb3b5d8b30332262dcb2c808ec089b5b (diff)
downloadkvkbd-d1fca948.tar.gz
kvkbd-d1fca948.zip
Save and restore status of numpad between startups. This refers to PR #9.
Signed-off-by: Ray-V <ray-v@inbox.lv> Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--src/MainWidget.cpp6
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();
}
}