Fix for qt 5.6
This commit is contained in:
parent
89d6152b3b
commit
3a558984b9
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class BatteryAction : public QAction
|
|||
Q_OBJECT
|
||||
public:
|
||||
BatteryAction(DeviceDbusInterface* device)
|
||||
: QAction()
|
||||
: QAction(nullptr)
|
||||
, m_batteryIface(new DeviceBatteryDbusInterface(device->id(), this))
|
||||
{
|
||||
setWhenAvailable(m_batteryIface->charge(), [this](int charge) { setCharge(charge); }, this);
|
||||
|
|
Loading…
Reference in a new issue