Added copy command string button

new_gui
Ivan Loskutov 14 years ago
parent 16c59b1656
commit 5aa407802a

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

@ -8,5 +8,6 @@
<file>img/list-remove-user.png</file>
<file>img/db_add.png</file>
<file>img/db_remove.png</file>
<file>img/edit-copy-4.png</file>
</qresource>
</RCC>

@ -6,6 +6,7 @@
#include <QIcon>
#include <QStackedWidget>
#include <QPushButton>
#include <QToolButton>
#include <QGroupBox>
#include <QLocale>
#include <QAction>
@ -108,13 +109,18 @@ void SystemInstaller::setupUi()
// cmd pannel
QGroupBox* cmd_grp = new QGroupBox;
m_labelInstCmd = new QLabel;
m_labelImage->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum);
QFont fontCmd = QApplication::font();
fontCmd.setFamily("Droid Sans Mono");
m_labelInstCmd->setFont(fontCmd);
m_labelInstCmd->setWordWrap(true);
m_butCopy = new QToolButton;
m_butCopy->setIcon( QIcon(":/img/edit-copy-4.png") );
QHBoxLayout* cmd_layout = new QHBoxLayout;
cmd_layout->addWidget(m_labelInstCmd);
cmd_layout->addWidget(m_butCopy);
cmd_grp->setLayout(cmd_layout);
// left + right pannels
@ -150,6 +156,8 @@ void SystemInstaller::setupUi()
m_labelInstCmd->setContextMenuPolicy(Qt::CustomContextMenu);
connect( m_labelInstCmd, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(showCopyMenu(QPoint)) );
connect( m_butCopy, SIGNAL(clicked(bool)), this, SLOT(copyCmd()) );
connect( m_butAbout, SIGNAL(clicked(bool)), this, SLOT(showAbout()) );
connect( CalculateConfig::instance(), SIGNAL(sendParameters(QStringList)), this, SLOT(showCmd(QStringList)) );

@ -7,6 +7,7 @@
#include "tools.h"
class QPushButton;
class QToolButton;
class QLabel;
class QStackedWidget;
class QAction;
@ -69,6 +70,8 @@ private:
QLabel* m_labelInstCmd;
QPushButton* m_butAbout;
QToolButton* m_butCopy;
QAction* m_actCopy;
QMenu* m_menuCopy;

Loading…
Cancel
Save