mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
build fix for the case when QT_NO_DIAL is defined
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ef664b3152
commit
3811ce0aef
4 changed files with 16 additions and 5 deletions
|
@ -96,6 +96,9 @@
|
|||
// #cmakedefine QT_NO_COMPLETER
|
||||
// #cmakedefine QT_NO_CONTEXTMENU
|
||||
// #cmakedefine QT_NO_CSSPARSER
|
||||
// #cmakedefine QT_NO_DATESTRING
|
||||
// #cmakedefine QT_NO_DATETIMEEDIT
|
||||
// #cmakedefine QT_NO_DEBUG_STREAM
|
||||
|
||||
// Misc
|
||||
#cmakedefine QT_NO_USING_NAMESPACE
|
||||
|
@ -106,11 +109,7 @@
|
|||
#cmakedefine QT_NO_CONCURRENT
|
||||
#cmakedefine QT_NO_CURSOR
|
||||
#cmakedefine QT_NO_DATAWIDGETMAPPER
|
||||
#cmakedefine QT_NO_DATESTRING
|
||||
#cmakedefine QT_NO_DATETIMEEDIT
|
||||
#cmakedefine QT_NO_DEBUG
|
||||
#cmakedefine QT_NO_DEBUG_PLUGIN_CHECK
|
||||
#cmakedefine QT_NO_DEBUG_STREAM
|
||||
#cmakedefine QT_NO_DIAL
|
||||
#cmakedefine QT_NO_DIALOGBUTTONBOX
|
||||
#cmakedefine QT_NO_DIRMODEL
|
||||
|
|
|
@ -198,6 +198,9 @@ void tst_QBoxLayout::sizeConstraints()
|
|||
|
||||
void tst_QBoxLayout::setGeometry()
|
||||
{
|
||||
#ifdef QT_NO_DIAL
|
||||
QSKIP("Katie compiled without dial support (QT_NO_DIAL)", SkipAll);
|
||||
#else
|
||||
QWidget toplevel;
|
||||
QWidget w(&toplevel);
|
||||
QVBoxLayout *lay = new QVBoxLayout;
|
||||
|
@ -215,6 +218,7 @@ void tst_QBoxLayout::setGeometry()
|
|||
QRect newGeom(0, 0, 70, 70);
|
||||
lay2->setGeometry(newGeom);
|
||||
QVERIFY2(newGeom.contains(dial->geometry()), "dial->geometry() should be smaller and within newGeom");
|
||||
#endif // QT_NO_DIAL
|
||||
}
|
||||
|
||||
void tst_QBoxLayout::setStyleShouldChangeSpacing()
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
|
||||
#include <QDial>
|
||||
|
||||
#ifndef QT_NO_DIAL
|
||||
|
||||
class tst_QDial : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -190,3 +192,9 @@ void tst_QDial::wrappingCheck()
|
|||
QTEST_MAIN(tst_QDial)
|
||||
|
||||
#include "moc_tst_qdial.cpp"
|
||||
|
||||
#else
|
||||
|
||||
QTEST_NOOP_MAIN
|
||||
|
||||
#endif // QT_NO_DIAL
|
||||
|
|
|
@ -1824,7 +1824,7 @@ class MainWindow : public QMainWindow {
|
|||
void tst_QMainWindow::setCursor()
|
||||
{
|
||||
#ifdef QT_NO_CURSOR
|
||||
QSKIP("Qt compiled without cursor support(QT_NO_CURSOR)", SkipAll);
|
||||
QSKIP("Katie compiled without cursor support (QT_NO_CURSOR)", SkipAll);
|
||||
#else
|
||||
MainWindow mw;
|
||||
QCursor cur = Qt::WaitCursor;
|
||||
|
|
Loading…
Add table
Reference in a new issue