Fix includes in mousebuttons example

Remove QtWidgets from buttontester.h and QtGui from main.cpp.

Change-Id: Ie5925a33c58c1abd9747ab0ab7040e7d1b0769a9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Alexander Volkov 2014-10-24 14:45:03 +04:00
parent a198ce8d8f
commit 41ece1cbc1
3 changed files with 6 additions and 3 deletions

View File

@ -41,6 +41,8 @@
#include "buttontester.h"
#include <QDebug>
void ButtonTester::mousePressEvent(QMouseEvent *e)
{
int j = ButtonTester::buttonByNumber (e->button());

View File

@ -41,10 +41,8 @@
#ifndef BUTTONTESTER_H
#define BUTTONTESTER_H
#include <QtWidgets>
#include <QTextEdit>
#include <QString>
#include <QDebug>
#include <QMouseEvent>
#include <QWheelEvent>

View File

@ -40,7 +40,10 @@
****************************************************************************/
#include "buttontester.h"
#include <QtGui>
#include <QApplication>
#include <QPushButton>
#include <QVBoxLayout>
int main(int argv, char **args)
{