From 9f3b50086d6859ad33fece313dd171dbea21c624 Mon Sep 17 00:00:00 2001 From: Lee Matos Date: Mon, 21 Mar 2016 21:27:38 -0400 Subject: [PATCH] Remove "Ghost" Toolbar I'm working on a theme and realized we have a toolbar that used to be used for price, which we no longer display. I removed the code (and the unused price code action) as we weren't using either. --- cockatrice/src/tab_deck_editor.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/cockatrice/src/tab_deck_editor.cpp b/cockatrice/src/tab_deck_editor.cpp index a874f22f..987870e4 100644 --- a/cockatrice/src/tab_deck_editor.cpp +++ b/cockatrice/src/tab_deck_editor.cpp @@ -114,32 +114,10 @@ void TabDeckEditor::createDeckDock() grid->addWidget(hashLabel1, 2, 0); grid->addWidget(hashLabel, 2, 1); - /* Update price - aUpdatePrices = new QAction(QString(), this); - aUpdatePrices->setIcon(QPixmap("theme:icons/update")); - connect(aUpdatePrices, SIGNAL(triggered()), this, SLOT(actUpdatePrices())); - if (!settingsCache->getPriceTagFeature()) - aUpdatePrices->setVisible(false); - connect(settingsCache, SIGNAL(priceTagFeatureChanged(int)), this, SLOT(setPriceTagFeatureEnabled(int))); - */ - - QToolBar *deckToolBar = new QToolBar; - deckToolBar->setObjectName("deckToolBar"); - deckToolBar->setOrientation(Qt::Vertical); - deckToolBar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); - deckToolBar->setIconSize(QSize(24, 24)); - //deckToolBar->addAction(aUpdatePrices); - QHBoxLayout *deckToolbarLayout = new QHBoxLayout; - deckToolbarLayout->setObjectName("deckToolbarLayout"); - deckToolbarLayout->addStretch(); - deckToolbarLayout->addWidget(deckToolBar); - deckToolbarLayout->addStretch(); - QVBoxLayout *rightFrame = new QVBoxLayout; rightFrame->setObjectName("rightFrame"); rightFrame->addLayout(grid); rightFrame->addWidget(deckView, 10); - rightFrame->addLayout(deckToolbarLayout); deckDock = new QDockWidget(this); deckDock->setObjectName("deckDock");