From 98295d32030c620040e3e6bd912c6808174640e4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 Dec 2017 23:39:01 +0300 Subject: Remove default parameters from tabstrip. --- src/gui/windows/charcreatedialog.cpp | 3 ++- src/gui/windows/equipmentwindow.cpp | 2 +- src/gui/windows/inventorywindow.cpp | 2 +- src/gui/windows/shopwindow.cpp | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/gui/windows') diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp index 9037ac614..4f9c82fe2 100644 --- a/src/gui/windows/charcreatedialog.cpp +++ b/src/gui/windows/charcreatedialog.cpp @@ -243,7 +243,8 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent, const int size = config.getIntValue("fontSize"); mGenderStrip = new TabStrip(this, "gender_" + getWindowName(), - size + 16); + size + 16, + 0); mGenderStrip->setPressFirst(false); mGenderStrip->addActionListener(this); mGenderStrip->setActionEventId("gender_"); diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp index 514499547..fa7bb6a63 100644 --- a/src/gui/windows/equipmentwindow.cpp +++ b/src/gui/windows/equipmentwindow.cpp @@ -98,7 +98,7 @@ EquipmentWindow::EquipmentWindow(Equipment *const equipment, { const int size = config.getIntValue("fontSize") + getOption("tabHeightAdjust", 16); - mTabs = new TabStrip(this, "equipment", size); + mTabs = new TabStrip(this, "equipment", size, 0); mTabs->addActionListener(this); mTabs->setActionEventId("tab_"); mTabs->setSelectable(false); diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index 3a62686ce..cf9e2c3c7 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -176,7 +176,7 @@ InventoryWindow::InventoryWindow(Inventory *const inventory) : mItems->addSelectionListener(this); const int size = config.getIntValue("fontSize"); - mFilter = new TabStrip(this, "filter_" + getWindowName(), size + 16); + mFilter = new TabStrip(this, "filter_" + getWindowName(), size + 16, 0); mFilter->addActionListener(this); mFilter->setActionEventId("tag_"); mFilter->setSelectable(false); diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp index d3b37b039..6ffd2649a 100644 --- a/src/gui/windows/shopwindow.cpp +++ b/src/gui/windows/shopwindow.cpp @@ -161,7 +161,7 @@ ShopWindow::ShopWindow() : const int size = config.getIntValue("fontSize") + getOption("tabHeightAdjust", 16); - mTabs = new TabStrip(this, "shop", size); + mTabs = new TabStrip(this, "shop", size, 0); mTabs->addActionListener(this); mTabs->setActionEventId("tab_"); // TRANSLATORS: shop window tab name -- cgit v1.2.3-60-g2f50