Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e90b39bebb
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (18 sloc) 0.552 kb
#include "StatusBar.h"
#include "Device.h"
#include "NetworkStatusWidget.h"
#include "TimeWidget.h"
#include "BatteryWidget.h"
StatusBar::StatusBar(QWidget *parent)
: QStatusBar(parent)
{
setSizeGripEnabled(false);
}
void StatusBar::loadDefaultWidgets(Device *device)
{
if(device->batteryLevelProvider())
addPermanentWidget(new BatteryWidget(device->batteryLevelProvider(), this));
if(device->networkingProvider())
addPermanentWidget(new NetworkStatusWidget(device->networkingProvider(), this));
addPermanentWidget(new TimeWidget(this));
}
Jump to Line
Something went wrong with that request. Please try again.