summaryrefslogtreecommitdiff
path: root/src/aboutwindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/aboutwindow.cc')
-rw-r--r--src/aboutwindow.cc16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/aboutwindow.cc b/src/aboutwindow.cc
index 06ebb69..8743ed8 100644
--- a/src/aboutwindow.cc
+++ b/src/aboutwindow.cc
@@ -33,7 +33,7 @@
#include <qfont.h>
#include <config.h>
-//"miav-grab.h"
+
#define MARGIN 12
AboutWindow::AboutWindow( QWidget* parent, const char* name )
: QDialog( parent, name )
@@ -75,8 +75,10 @@ void AboutWindow::paintEvent( QPaintEvent *event )
QPainter painter;
painter.begin(this);
+ // Draw background
painter.drawPixmap(0,0, *pix_about);
+ // Draw title and version
painter.setBrush( SolidPattern );
painter.setFont( QFont( "Arial", 18, QFont::Bold ) );
painter.setPen( Qt::black );
@@ -84,18 +86,6 @@ void AboutWindow::paintEvent( QPaintEvent *event )
painter.setPen( Qt::red );
painter.drawText(version_x + 2, version_y + 2, "MIAV-Grab v" VERSION);
- /*
- painter.setBrush( Dense4Pattern );
- painter.drawRect(25,25,270,377);
-
- painter.setPen( Qt::white );
- painter.setFont( QFont( "Arial", 11, QFont::Bold ) );
- painter.drawText(30,70, 270, 357, 0, ABOUT_INFO);
-
- painter.setPen( Qt::white );
- painter.setFont( QFont( "Arial", 8, QFont::Bold ) );
- painter.drawText(30,165, 270, 357, 0, GPL_LICENSE);
- */
painter.end();
}