fix some warnings
REVIEW: 113193
This commit is contained in:
parent
c7c9e8fefc
commit
e597f66af2
@ -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)
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user