mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-16 23:29:58 +00:00
change layout to gridlayout
remove deprecated functions
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
#include <Plasma/ToolTipManager>
|
||||
#include <QDesktopServices>
|
||||
#include <QDir>
|
||||
#include <QGraphicsLinearLayout>
|
||||
#include <QGraphicsGridLayout>
|
||||
#include <QGraphicsScene>
|
||||
#include <QGraphicsView>
|
||||
#include <QNetworkInterface>
|
||||
@ -194,12 +194,11 @@ void AwesomeWidget::init()
|
||||
|
||||
// body
|
||||
createActions();
|
||||
mainLayout = new QGraphicsLinearLayout();
|
||||
mainLayout = new QGraphicsGridLayout();
|
||||
mainLayout->setContentsMargins(1, 1, 1, 1);
|
||||
mainLayout->setOrientation(Qt::Horizontal);
|
||||
setLayout(mainLayout);
|
||||
textLabel = new CustomLabel(this, debug);
|
||||
textLabel->setWordWrap(false);
|
||||
mainLayout->addItem(textLabel, 0, 0);
|
||||
|
||||
// read variables
|
||||
configChanged();
|
||||
|
Reference in New Issue
Block a user