summaryrefslogtreecommitdiff
path: root/client/messagebox.cc
diff options
context:
space:
mode:
authordeva <deva>2006-03-07 19:12:18 +0000
committerdeva <deva>2006-03-07 19:12:18 +0000
commit4f84ffc811d93371f395f11a0e0f42000eaa99fc (patch)
treeb562b6c55f2a825dbbc12646df9741b51e1dff79 /client/messagebox.cc
parent1390ddfe6afe41dba141f8170f9b277573ebe8cd (diff)
*** empty log message ***
Diffstat (limited to 'client/messagebox.cc')
-rw-r--r--client/messagebox.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/messagebox.cc b/client/messagebox.cc
index f4797ab..11686c7 100644
--- a/client/messagebox.cc
+++ b/client/messagebox.cc
@@ -29,9 +29,9 @@
#include "messagebox.h"
#include "miav_config.h"
-// For button sizes!
-#include "mainwindow.h"
-
+#define INCH_IN_CM 2
+#define BUTTON_HEIGHT 1
+#define BUTTON_WIDTH 3
////////////////////////////////////////////////////////////////////////////////////////
/* If the cpr input by the user is not valid, this dialog
* ask the user what to do. Edit the number, use it as it is,
@@ -45,9 +45,9 @@ MessageBox::MessageBox(QWidget* parent,
msg_icon icon)
: QDialog(parent)
{
- int resolution_w = config->readInt("pixel_width");
+ int resolution_w = MIaV::config->readInt("pixel_width");
//int resolution_h = config->readInt("pixel_height");
- unit = ((float)resolution_w / config->readFloat("screensize")) / INCH_IN_CM;
+ unit = ((float)resolution_w / MIaV::config->readFloat("screensize")) / INCH_IN_CM;
setModal(true);
setWindowTitle(name);