1
0
Fork 0

CPU info scrollbars and button styling removed

This commit is contained in:
JustasMasiulis 2020-06-04 22:40:09 +03:00 committed by Duncan Ogilvie
parent b0dd282d92
commit c5e64b42a2
3 changed files with 0 additions and 7 deletions

View File

@ -238,8 +238,6 @@ void CPUArgumentWidget::loadConfig()
void CPUArgumentWidget::setupTable()
{
connect(mTable, SIGNAL(contextMenuSignal(QPoint)), this, SLOT(contextMenuSlot(QPoint)));
mTable->verticalScrollBar()->setStyleSheet(ConfigVScrollBarStyle());
mTable->horizontalScrollBar()->setStyleSheet(ConfigHScrollBarStyle());
mTable->enableMultiSelection(false);
mTable->setShowHeader(false);
mTable->addColumnAt(0, "", false);

View File

@ -18,7 +18,6 @@ CPUInfoBox::CPUInfoBox(StdTable* parent) : StdTable(parent)
setCellContent(3, 0, "");
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
horizontalScrollBar()->setStyleSheet(ConfigHScrollBarStyle());
int height = getHeight();
setMinimumHeight(height);

View File

@ -57,11 +57,7 @@ CPUWidget::CPUWidget(QWidget* parent) : QWidget(parent), ui(new Ui::CPUWidget)
upperScrollArea->setFrameShape(QFrame::NoFrame);
upperScrollArea->setWidget(mGeneralRegs);
upperScrollArea->horizontalScrollBar()->setStyleSheet(ConfigHScrollBarStyle());
upperScrollArea->verticalScrollBar()->setStyleSheet(ConfigVScrollBarStyle());
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()));
mGeneralRegs->SetChangeButton(button_changeview);