Compile fix

This commit is contained in:
Jørgen Lind 2011-06-01 15:55:15 +02:00
parent 00ef07fe96
commit d47246a7c6
7 changed files with 18 additions and 18 deletions

View File

@ -1,5 +1,5 @@
QT += core gui QT += core gui widgets
TARGET = applicationicon TARGET = applicationicon
TEMPLATE = app TEMPLATE = app

View File

@ -1,5 +1,5 @@
#include <QtGui/QApplication> #include <QtWidgets/QApplication>
#include <QtGui/QLabel> #include <QtWidgets/QLabel>
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {

View File

@ -1,11 +1,11 @@
#ifndef ELIDEDLABEL_H #ifndef ELIDEDLABEL_H
#define ELIDEDLABEL_H #define ELIDEDLABEL_H
#include <QFrame> #include <QtWidgets/QFrame>
#include <QRect> #include <QtCore/QRect>
#include <QResizeEvent> #include <QtGui/QResizeEvent>
#include <QString> #include <QtCore/QString>
#include <QWidget> #include <QtWidgets/QWidget>
//! [0] //! [0]
class ElidedLabel : public QFrame class ElidedLabel : public QFrame

View File

@ -1,6 +1,6 @@
# Nokia Qt Examples: elided label example # Nokia Qt Examples: elided label example
QT += core gui QT += core gui widgets
TARGET = elidedlabel TARGET = elidedlabel
TEMPLATE = app TEMPLATE = app

View File

@ -1,6 +1,6 @@
#include "testwidget.h" #include "testwidget.h"
#include <QtGui/QApplication> #include <QtWidgets/QApplication>
//! [0] //! [0]
int main( int argc, char *argv[] ) int main( int argc, char *argv[] )

View File

@ -1,10 +1,10 @@
#include "testwidget.h" #include "testwidget.h"
#include "elidedlabel.h" #include "elidedlabel.h"
#include <QLabel> #include <QtWidgets/QLabel>
#include <QPushButton> #include <QtWidgets/QPushButton>
#include <QSizePolicy> #include <QtWidgets/QSizePolicy>
#include <QGridLayout> #include <QtWidgets/QGridLayout>
//! [0] //! [0]
TestWidget::TestWidget(QWidget *parent): TestWidget::TestWidget(QWidget *parent):

View File

@ -1,10 +1,10 @@
#ifndef TESTWIDGET_H #ifndef TESTWIDGET_H
#define TESTWIDGET_H #define TESTWIDGET_H
#include <QWidget> #include <QtWidgets/QWidget>
#include <QStringList> #include <QtCore/QStringList>
#include <QSlider> #include <QtWidgets/QSlider>
#include <QComboBox> #include <QtWidgets/QComboBox>
class ElidedLabel; class ElidedLabel;