diff options
author | akshay-c | 2019-02-04 10:47:13 +0530 |
---|---|---|
committer | akshay-c | 2019-02-04 10:47:13 +0530 |
commit | a962c0a7965f6c0d80c867ba9f3fbe797ac14de7 (patch) | |
tree | 54e8f72c170cadcee9c7d06e755e3c768dc51327 /ldmicro/lib/freezeLD | |
parent | 4196481f74afb84e5cc59cdf00c06c1ca1becab7 (diff) | |
download | LDmicroQt-a962c0a7965f6c0d80c867ba9f3fbe797ac14de7.tar.gz LDmicroQt-a962c0a7965f6c0d80c867ba9f3fbe797ac14de7.tar.bz2 LDmicroQt-a962c0a7965f6c0d80c867ba9f3fbe797ac14de7.zip |
Create statusbar
Diffstat (limited to 'ldmicro/lib/freezeLD')
-rw-r--r-- | ldmicro/lib/freezeLD/freezeLD.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ldmicro/lib/freezeLD/freezeLD.cpp b/ldmicro/lib/freezeLD/freezeLD.cpp index aad4be7..6ae42eb 100644 --- a/ldmicro/lib/freezeLD/freezeLD.cpp +++ b/ldmicro/lib/freezeLD/freezeLD.cpp @@ -137,7 +137,7 @@ static void Clamp(LONG *v, LONG min, LONG max) */ void ThawWindowPosF(HWID hwid, char *subKey, char *name) { - /*char* Ld_CWD = (char *)malloc(MAX_PATH); + char* Ld_CWD = (char *)malloc(MAX_PATH); getcwd(Ld_CWD, MAX_PATH); if (!Ld_CWD) @@ -191,7 +191,10 @@ void ThawWindowPosF(HWID hwid, char *subKey, char *name) Register.read((char*) &newKey2, sizeof(newKey2)); Register.close(); if (newKey1.type == 'i' && newKey2.type == 'i') - gtk_window_resize(GTK_WINDOW(hwid), newKey1.val.i, newKey2.val.i); + { + QSize MwSize(newKey1.val.i,newKey2.val.i); + hwid->resize(MwSize); + } /// set position @@ -217,7 +220,7 @@ void ThawWindowPosF(HWID hwid, char *subKey, char *name) Register.read((char*) &newKey2, sizeof(newKey2)); Register.close(); if (newKey1.type == 'i' && newKey2.type == 'i') - gtk_window_move(GTK_WINDOW(hwid), newKey1.val.i, newKey2.val.i); + hwid->move(newKey1.val.i, newKey2.val.i); sprintf(keyName, "%s_maximized", name); @@ -232,14 +235,14 @@ void ThawWindowPosF(HWID hwid, char *subKey, char *name) Register.close(); if (newKey1.type == 'b') if (newKey1.val.b) - gtk_window_maximize(GTK_WINDOW(hwid)); + hwid->showMaximized(); /// gtk_window_move handles off-screen window placement free(keyName); chdir(Ld_CWD); - free(Ld_CWD);*/ + free(Ld_CWD); } /* |