mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-25 07:57:19 +00:00
* add .desktop suffix to files if they have not
* remove frameshape
This commit is contained in:
parent
5f37a9d8c7
commit
2c3c575493
@ -722,6 +722,7 @@ void AwesomeWidget::addBar()
|
|||||||
i18n("File name"), QLineEdit::Normal,
|
i18n("File name"), QLineEdit::Normal,
|
||||||
QString(""), &ok);
|
QString(""), &ok);
|
||||||
if ((!ok) || (name.isEmpty())) return;
|
if ((!ok) || (name.isEmpty())) return;
|
||||||
|
if (!name.endsWith(QString(".desktop"))) name += QString(".desktop");
|
||||||
QStringList bars;
|
QStringList bars;
|
||||||
bars.append(keys.filter((QRegExp(QString("cpu(?!cl).*")))));
|
bars.append(keys.filter((QRegExp(QString("cpu(?!cl).*")))));
|
||||||
bars.append(keys.filter((QRegExp(QString("gpu")))));
|
bars.append(keys.filter((QRegExp(QString("gpu")))));
|
||||||
@ -746,6 +747,7 @@ void AwesomeWidget::addCustomScript()
|
|||||||
i18n("File name"), QLineEdit::Normal,
|
i18n("File name"), QLineEdit::Normal,
|
||||||
QString(""), &ok);
|
QString(""), &ok);
|
||||||
if ((!ok) || (name.isEmpty())) return;
|
if ((!ok) || (name.isEmpty())) return;
|
||||||
|
if (!name.endsWith(QString(".desktop"))) name += QString(".desktop");
|
||||||
|
|
||||||
ExtScript *script = new ExtScript(0, name, dirs, debug);
|
ExtScript *script = new ExtScript(0, name, dirs, debug);
|
||||||
script->showConfiguration();
|
script->showConfiguration();
|
||||||
|
@ -69,6 +69,7 @@ QString GraphicalItem::getImage(const float value)
|
|||||||
QGraphicsView *view = new QGraphicsView(scene);
|
QGraphicsView *view = new QGraphicsView(scene);
|
||||||
view->setStyleSheet(QString("background: transparent"));
|
view->setStyleSheet(QString("background: transparent"));
|
||||||
view->setContentsMargins(0, 0, 0, 0);
|
view->setContentsMargins(0, 0, 0, 0);
|
||||||
|
view->setFrameShape(QFrame::NoFrame);
|
||||||
view->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
view->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||||
view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||||
view->resize(_width + 5.0, _height + 5.0);
|
view->resize(_width + 5.0, _height + 5.0);
|
||||||
|
Loading…
Reference in New Issue
Block a user