summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRay-V <[email protected]>2021-02-10 10:59:53 +0900
committerMichele Calgaro <[email protected]>2021-02-10 11:45:17 +0900
commit2c38847e01161b7e4720271b1b17e79007334855 (patch)
tree3f026f4aced03087743f856bf73a32e7e2f5c309
parent5c938330ecde53ed9b0fae37a5bdf2f0c5036ba5 (diff)
downloadkvkbd-2c38847e01161b7e4720271b1b17e79007334855.tar.gz
kvkbd-2c38847e01161b7e4720271b1b17e79007334855.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]> (cherry picked from commit d1fca948cfde3b711652e69e03084908facc9f83)
-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();
}
}