summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/inventorywindow.cpp3
-rw-r--r--src/gui/windows/maileditwindow.cpp3
-rw-r--r--src/gui/windows/mailviewwindow.cpp3
-rw-r--r--src/gui/windows/npcdialog.cpp2
-rw-r--r--src/gui/windows/tradewindow.cpp6
5 files changed, 11 insertions, 6 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp
index ee0d566ce..00ce036e8 100644
--- a/src/gui/windows/inventorywindow.cpp
+++ b/src/gui/windows/inventorywindow.cpp
@@ -87,7 +87,8 @@ InventoryWindow::InventoryWindow(Inventory *const inventory) :
InventoryListener(),
AttributeListener(),
mInventory(inventory),
- mItems(new ItemContainer(this, mInventory)),
+ mItems(new ItemContainer(this, mInventory, 100000,
+ ShowEmptyRows_false, ForceQuantity_false)),
mUseButton(nullptr),
mDropButton(nullptr),
mOutfitButton(nullptr),
diff --git a/src/gui/windows/maileditwindow.cpp b/src/gui/windows/maileditwindow.cpp
index 5ca0d34c6..08f70b4fa 100644
--- a/src/gui/windows/maileditwindow.cpp
+++ b/src/gui/windows/maileditwindow.cpp
@@ -76,7 +76,8 @@ MailEditWindow::MailEditWindow() :
mMessageField(new TextField(this)),
mInventory(new Inventory(InventoryType::MailEdit,
settings.enableNewMailSystem ? -1 : 1)),
- mItemContainer(new ItemContainer(this, mInventory)),
+ mItemContainer(new ItemContainer(this, mInventory, 100000,
+ ShowEmptyRows_false, ForceQuantity_false)),
mItemScrollArea(new ScrollArea(this, mItemContainer,
fromBool(getOptionBool("showitemsbackground"), Opaque),
"mailedit_listbackground.xml")),
diff --git a/src/gui/windows/mailviewwindow.cpp b/src/gui/windows/mailviewwindow.cpp
index 911cb5de7..add46a7f2 100644
--- a/src/gui/windows/mailviewwindow.cpp
+++ b/src/gui/windows/mailviewwindow.cpp
@@ -77,7 +77,8 @@ MailViewWindow::MailViewWindow(MailMessage *const message,
mMessageLabel(new Label(this, strprintf("%s %s", _("Message:"),
message->text.c_str()))),
mInventory(new Inventory(InventoryType::MailView, itemsCount)),
- mItemContainer(new ItemContainer(this, mInventory)),
+ mItemContainer(new ItemContainer(this, mInventory, 100000,
+ ShowEmptyRows_false, ForceQuantity_false)),
mItemScrollArea(new ScrollArea(this, mItemContainer,
fromBool(getOptionBool("showitemsbackground"), Opaque),
"mailview_listbackground.xml")),
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp
index ab6e4bc71..bb770d1e0 100644
--- a/src/gui/windows/npcdialog.cpp
+++ b/src/gui/windows/npcdialog.cpp
@@ -138,7 +138,7 @@ NpcDialog::NpcDialog(const BeingId npcId) :
mInventory(new Inventory(InventoryType::Npc, 1)),
mComplexInventory(new ComplexInventory(InventoryType::Craft, 1)),
mItemContainer(new ItemContainer(this, mInventory,
- 10000, ShowEmptyRows_true)),
+ 10000, ShowEmptyRows_true, ForceQuantity_false)),
mItemScrollArea(new ScrollArea(this, mItemContainer,
fromBool(getOptionBool("showitemsbackground"), Opaque),
"npc_listbackground.xml")),
diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp
index 3f16b0b4b..8b730218c 100644
--- a/src/gui/windows/tradewindow.cpp
+++ b/src/gui/windows/tradewindow.cpp
@@ -79,8 +79,10 @@ TradeWindow::TradeWindow() :
SelectionListener(),
mMyInventory(new Inventory(InventoryType::Trade, -1)),
mPartnerInventory(new Inventory(InventoryType::Trade, -1)),
- mMyItemContainer(new ItemContainer(this, mMyInventory)),
- mPartnerItemContainer(new ItemContainer(this, mPartnerInventory)),
+ mMyItemContainer(new ItemContainer(this, mMyInventory, 100000,
+ ShowEmptyRows_false, ForceQuantity_false)),
+ mPartnerItemContainer(new ItemContainer(this, mPartnerInventory, 100000,
+ ShowEmptyRows_false, ForceQuantity_false)),
// TRANSLATORS: trade window money label
mMoneyLabel(new Label(this, strprintf(_("You get %s"), ""))),
// TRANSLATORS: trade window button