3434#include < cassert>
3535#include " termwidget.h"
3636
37+ #include < QGridLayout>
3738#include < QLabel>
3839#include < QStandardItemModel>
3940#include < QTextBrowser>
4647#include < QSystemTrayIcon>
4748#include < QToolButton>
4849#include < QDebug>
50+ #include < QActionGroup>
4951
5052/*
5153 * Loads various application settings configured in ~/.config/octopkg/octopkg.conf
@@ -83,9 +85,9 @@ void MainWindow::loadPanelSettings(){
8385 }
8486
8587 // Do we have to show or hide the Groups panel?
86- if (!SettingsManager::getShowGroupsPanel ()){
88+ /* if (!SettingsManager::getShowGroupsPanel()){
8789 hideGroupsWidget();
88- }
90+ }*/
8991}
9092
9193/*
@@ -363,12 +365,12 @@ void MainWindow::changeTabWidgetPropertiesIndex(const int newIndex)
363365 refreshTabFiles ();
364366 }
365367
366- ui->twProperties ->currentWidget ()->childAt (1 ,1 )->setFocus ();
368+ // ui->twProperties->currentWidget()->childAt(1,1)->setFocus();
367369 }
368370 else
369371 {
370372 // For any other tab... just doing the following is enough
371- ui->twProperties ->currentWidget ()->childAt (1 ,1 )->setFocus ();
373+ // ui->twProperties->currentWidget()->childAt(1,1)->setFocus();
372374 }
373375}
374376
@@ -391,7 +393,7 @@ void MainWindow::initTabTransaction()
391393 QWidget *tabTransaction = new QWidget ();
392394 QGridLayout *gridLayoutX = new QGridLayout (tabTransaction);
393395 gridLayoutX->setSpacing (0 );
394- gridLayoutX->setMargin ( 0 );
396+ gridLayoutX->setContentsMargins ( 0 , 0 , 0 , 0 );
395397
396398 QTreeView *tvTransaction = new QTreeView (tabTransaction);
397399 tvTransaction->setObjectName (" tvTransaction" );
@@ -491,8 +493,8 @@ void MainWindow::removePackageTreeViewConnections()
491493void MainWindow::initTabInfo (){
492494 QWidget *tabInfo = new QWidget ();
493495 QGridLayout *gridLayoutX = new QGridLayout ( tabInfo );
494- gridLayoutX->setSpacing ( 0 );
495- gridLayoutX->setMargin ( 0 );
496+ gridLayoutX->setSpacing ( 0 );
497+ gridLayoutX->setContentsMargins ( 0 , 0 , 0 , 0 );
496498
497499 QTextBrowser *text = new QTextBrowser (tabInfo);
498500 text->setObjectName (" textBrowser" );
@@ -530,7 +532,7 @@ void MainWindow::initTabTerminal()
530532 QWidget *tabTerminal = new QWidget (this );
531533 QGridLayout *gridLayoutX = new QGridLayout (tabTerminal);
532534 gridLayoutX->setSpacing ( 0 );
533- gridLayoutX->setMargin ( 0 );
535+ gridLayoutX->setContentsMargins ( 0 , 0 , 0 , 0 );
534536
535537 m_console = new TermWidget (this );
536538 // connect(m_console, SIGNAL(finished()), this, SLOT(initTabTerminal()));
@@ -570,9 +572,9 @@ void MainWindow::onExecCommandInTabTerminal(QString command)
570572void MainWindow::initTabFiles ()
571573{
572574 QWidget *tabPkgFileList = new QWidget (this );
573- QGridLayout *gridLayoutX = new QGridLayout ( tabPkgFileList );
574- gridLayoutX->setSpacing ( 0 );
575- gridLayoutX->setMargin ( 0 );
575+ QGridLayout *gridLayoutX = new QGridLayout (tabPkgFileList);
576+ gridLayoutX->setSpacing ( 0 );
577+ gridLayoutX->setContentsMargins ( 0 , 0 , 0 , 0 );
576578 QStandardItemModel *modelPkgFileList = new QStandardItemModel (this );
577579 QTreeView *tvPkgFileList = new QTreeView (tabPkgFileList);
578580 tvPkgFileList->setEditTriggers (QAbstractItemView::NoEditTriggers);
@@ -620,8 +622,8 @@ void MainWindow::initTabOutput()
620622{
621623 QWidget *tabOutput = new QWidget ();
622624 QGridLayout *gridLayoutX = new QGridLayout (tabOutput);
623- gridLayoutX->setSpacing ( 0 );
624- gridLayoutX->setMargin ( 0 );
625+ gridLayoutX->setSpacing ( 0 );
626+ gridLayoutX->setContentsMargins ( 0 , 0 , 0 , 0 );
625627
626628 QTextBrowser *text = new QTextBrowser (tabOutput);
627629 text->setObjectName (" textBrowser" );
0 commit comments