CPU info scrollbars and button styling removed
This commit is contained in:
parent
b0dd282d92
commit
c5e64b42a2
|
@ -238,8 +238,6 @@ void CPUArgumentWidget::loadConfig()
|
||||||
void CPUArgumentWidget::setupTable()
|
void CPUArgumentWidget::setupTable()
|
||||||
{
|
{
|
||||||
connect(mTable, SIGNAL(contextMenuSignal(QPoint)), this, SLOT(contextMenuSlot(QPoint)));
|
connect(mTable, SIGNAL(contextMenuSignal(QPoint)), this, SLOT(contextMenuSlot(QPoint)));
|
||||||
mTable->verticalScrollBar()->setStyleSheet(ConfigVScrollBarStyle());
|
|
||||||
mTable->horizontalScrollBar()->setStyleSheet(ConfigHScrollBarStyle());
|
|
||||||
mTable->enableMultiSelection(false);
|
mTable->enableMultiSelection(false);
|
||||||
mTable->setShowHeader(false);
|
mTable->setShowHeader(false);
|
||||||
mTable->addColumnAt(0, "", false);
|
mTable->addColumnAt(0, "", false);
|
||||||
|
|
|
@ -18,7 +18,6 @@ CPUInfoBox::CPUInfoBox(StdTable* parent) : StdTable(parent)
|
||||||
setCellContent(3, 0, "");
|
setCellContent(3, 0, "");
|
||||||
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||||
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||||
horizontalScrollBar()->setStyleSheet(ConfigHScrollBarStyle());
|
|
||||||
|
|
||||||
int height = getHeight();
|
int height = getHeight();
|
||||||
setMinimumHeight(height);
|
setMinimumHeight(height);
|
||||||
|
|
|
@ -57,11 +57,7 @@ CPUWidget::CPUWidget(QWidget* parent) : QWidget(parent), ui(new Ui::CPUWidget)
|
||||||
upperScrollArea->setFrameShape(QFrame::NoFrame);
|
upperScrollArea->setFrameShape(QFrame::NoFrame);
|
||||||
upperScrollArea->setWidget(mGeneralRegs);
|
upperScrollArea->setWidget(mGeneralRegs);
|
||||||
|
|
||||||
upperScrollArea->horizontalScrollBar()->setStyleSheet(ConfigHScrollBarStyle());
|
|
||||||
upperScrollArea->verticalScrollBar()->setStyleSheet(ConfigVScrollBarStyle());
|
|
||||||
|
|
||||||
QPushButton* button_changeview = new QPushButton("", this);
|
QPushButton* button_changeview = new QPushButton("", this);
|
||||||
button_changeview->setStyleSheet("Text-align:left;padding: 4px;padding-left: 10px;");
|
|
||||||
connect(button_changeview, SIGNAL(clicked()), mGeneralRegs, SLOT(onChangeFPUViewAction()));
|
connect(button_changeview, SIGNAL(clicked()), mGeneralRegs, SLOT(onChangeFPUViewAction()));
|
||||||
mGeneralRegs->SetChangeButton(button_changeview);
|
mGeneralRegs->SetChangeButton(button_changeview);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue