diff options
author | Manuel Schneider | 2014-04-09 19:44:28 +0200 |
---|---|---|
committer | Manuel Schneider | 2014-04-09 19:44:28 +0200 |
commit | 141451ea9f34d71d4255f323492cb463d96dd865 (patch) | |
tree | f3da5656e3dd393431fbcf9d78dcc810261bc36b /src/widget.h | |
parent | [beamergui] Removed the need of a configfile in beamergui, because it is hand... (diff) | |
download | beamergui-141451ea9f34d71d4255f323492cb463d96dd865.tar.gz beamergui-141451ea9f34d71d4255f323492cb463d96dd865.tar.xz beamergui-141451ea9f34d71d4255f323492cb463d96dd865.zip |
[beamergui] Several changes
+ mouse position will be centered after changing the resolution.
+ fixed the bug with the positioning of the gui
+ fixed curious X async bug
+ deleted a lot of crap and old debug statements
+ current resolution will be highlighted
Diffstat (limited to 'src/widget.h')
-rw-r--r-- | src/widget.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/widget.h b/src/widget.h index 83404ac..a737412 100644 --- a/src/widget.h +++ b/src/widget.h @@ -4,12 +4,13 @@ #ifndef WIDGET_H #define WIDGET_H -#include <QWidget> -#include <QtGui> +#include <QtGui> // for Qt4 +#include <QWidget> // for Qt4 +//#include <QtWidgets> // for Qt5 #include <QDebug> -#include <QProgressDialog> -#include <x.h> +#include <X11/Xlib.h> +#include <X11/extensions/Xrandr.h> namespace Ui { class Widget; @@ -40,10 +41,8 @@ public: void handleButton(); private: - void updateScreenResources(); - // Deprecated, will be deleted after confirmation from above - //void setResFromConfig(); void timeout(); + void updateScreenResources(); Ui::Widget * _ui; Display* _display; |