summaryrefslogtreecommitdiff
path: root/src/mainwindow.cc
diff options
context:
space:
mode:
authordeva <deva>2005-03-24 16:47:23 +0000
committerdeva <deva>2005-03-24 16:47:23 +0000
commitfed5c1dbf6a6c01719efc686a3d966f810ab0ade (patch)
tree82958aea393b42e527559456a47aaad03cdbd42f /src/mainwindow.cc
parent215a98d25d26ed5f1d38deced21da5d8daae69b7 (diff)
Made the configurationfile parser
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r--src/mainwindow.cc12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index 77b8d94..2abfbc8 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -55,14 +55,8 @@ MainWindow::MainWindow( QWidget* parent, const char* name )
// statusBar()->setSizeGripEnabled(false);
MiavConfig cfg("miav.conf");
- /** /
- int resolution_w = 1280; // TODO: Read actual resolution
- int resolution_h = 1024; // TODO: Read actual resolution
- /**/
- /**/
- int resolution_w = 1024; // TODO: Read actual resolution
- int resolution_h = 768; // TODO: Read actual resolution
- /**/
+ int resolution_w = cfg.readInt("pixel_width");
+ int resolution_h = cfg.readInt("pixel_height");
unit = ((float)resolution_w / (float)(cfg.readFloat("screensize") * 3.1f));
move(0,0);
@@ -103,8 +97,6 @@ MainWindow::MainWindow( QWidget* parent, const char* name )
aboutwindow = NULL;
- // CPRQueryDialog dlg(lbl_cpr, lbl_name, this, "CPRQueryDialog");
- // dlg.exec();
// Open the CPR Dialog
cpr_clicked();
}