From fed5c1dbf6a6c01719efc686a3d966f810ab0ade Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 24 Mar 2005 16:47:23 +0000 Subject: Made the configurationfile parser --- src/mainwindow.cc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/mainwindow.cc') 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(); } -- cgit v1.2.3