summaryrefslogtreecommitdiff
path: root/client/messagebox.cc
diff options
context:
space:
mode:
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);