Commit e210f080 authored by Andrius Štikonas's avatar Andrius Štikonas

Combine signmaster label and moves into a single widget.

This fixes remaining issues with signmaster layout.
parent 004b5b39
......@@ -22,10 +22,11 @@
// Qt includes.
#include <QAction>
#include <QLineEdit>
#include <QString>
#include <QHBoxLayout>
#include <QGLFormat>
#include <QSignalMapper>
#include <QStatusBar>
#include <QString>
// KDE includes.
#include <KActionCollection>
......@@ -309,13 +310,17 @@ void Kubrick::initGUI()
singmasterLabel = new QLabel (i18n("Singmaster Moves"), this);
singmasterMoves = new QLineEdit (this);
QWidgetAction *w = new QWidgetAction(this);
QWidget *sigmasterWidget = new QWidget(this);
QHBoxLayout *sigmasterLayout = new QHBoxLayout (sigmasterWidget);
sigmasterLayout->setMargin(0);
sigmasterLayout->addWidget(singmasterLabel);
sigmasterLayout->addWidget(singmasterMoves);
QWidgetAction *w = new QWidgetAction (this);
actionCollection()->addAction ( QLatin1String( "singmaster_label" ), w);
w->setDefaultWidget (singmasterLabel);
w->setDefaultWidget (sigmasterWidget);
w = new QWidgetAction (this);
actionCollection()->addAction ( QLatin1String( "singmaster_moves" ), w);
w->setDefaultWidget (singmasterMoves);
QString singmasterToolTip = i18n("This area shows Singmaster moves.");
QString singmasterWhatsThis = i18nc("The letters RLFBUD are mathematical "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment