fix some warnings

REVIEW: 113193
This commit is contained in:
Alex Richardson 2013-10-13 15:43:18 +02:00
parent c7c9e8fefc
commit e597f66af2
4 changed files with 10 additions and 10 deletions

View File

@ -14,7 +14,7 @@ class Calendar : public QObject
Q_OBJECT Q_OBJECT
Q_PROPERTY(QDate startDate READ startDate WRITE setStartDate NOTIFY startDateChanged) Q_PROPERTY(QDate startDate READ startDate WRITE setStartDate NOTIFY startDateChanged)
Q_PROPERTY(int types READ types WRITE setTypes NOTIFY typesChanged) Q_PROPERTY(int types READ types WRITE setTypes NOTIFY typesChanged)
Q_PROPERTY(QList<int> weeksModel READ weeksModel NOTIFY startDateChanged CONSTANT) Q_PROPERTY(QList<int> weeksModel READ weeksModel CONSTANT)
Q_PROPERTY(int days READ days WRITE setDays NOTIFY daysChanged) Q_PROPERTY(int days READ days WRITE setDays NOTIFY daysChanged)
Q_PROPERTY(int weeks READ weeks WRITE setWeeks NOTIFY weeksChanged) Q_PROPERTY(int weeks READ weeks WRITE setWeeks NOTIFY weeksChanged)
Q_PROPERTY(int startDay READ startDay WRITE setStartDay NOTIFY startDayChanged) Q_PROPERTY(int startDay READ startDay WRITE setStartDay NOTIFY startDayChanged)

View File

@ -60,7 +60,7 @@ QString locString(const Plasma::Types::Location l) {
} }
DialogProxy::DialogProxy(QQuickItem *parent) DialogProxy::DialogProxy(QQuickItem *parent)
: QQuickWindow(), : QQuickWindow(parent ? parent->window() : 0),
m_location(Plasma::Types::TopEdge), m_location(Plasma::Types::TopEdge),
m_activeWindow(false) m_activeWindow(false)
{ {

View File

@ -191,15 +191,15 @@ Plasma::Applet *ContainmentInterface::addApplet(const QString &plugin, const QVa
blockSignals(true); blockSignals(true);
Plasma::Applet *applet = containment()->createApplet(plugin, args); Plasma::Applet *applet = containment()->createApplet(plugin, args);
QObject *appletGraphicObject;
if (applet) { if (applet) {
appletGraphicObject = applet->property("graphicObject").value<QObject *>(); QObject *appletGraphicObject = applet->property("graphicObject").value<QObject *>();
blockSignals(false);
emit appletAdded(appletGraphicObject, pos.x(), pos.y());
emit appletsChanged();
} }
blockSignals(false);
emit appletAdded(appletGraphicObject, pos.x(), pos.y());
emit appletsChanged();
return applet; return applet;
} }

View File

@ -78,7 +78,7 @@ void DesktopView::setFillScreen(bool fillScreen)
resize(screen()->geometry().width(), screen()->geometry().height()); resize(screen()->geometry().width(), screen()->geometry().height());
connect(screen(), &QScreen::geometryChanged, [=]{resize(screen()->geometry().width(), screen()->geometry().height());}); connect(screen(), &QScreen::geometryChanged, [=]{resize(screen()->geometry().width(), screen()->geometry().height());});
fillScreen = fillScreen; m_fillScreen = fillScreen;
emit fillScreenChanged(); emit fillScreenChanged();
} }