From fff0a6384fec0634fe6735a5582693031f2ef7b8 Mon Sep 17 00:00:00 2001 From: konrad Date: Sat, 11 Dec 2010 21:14:23 +0000 Subject: [PATCH] make price label bigger git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@659 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- src/mwin/carttab.cpp | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/mwin/carttab.cpp b/src/mwin/carttab.cpp index a2cda8f..a2787a2 100644 --- a/src/mwin/carttab.cpp +++ b/src/mwin/carttab.cpp @@ -40,6 +40,8 @@ MCartTab::MCartTab(QString pk) QVBoxLayout*vl;QHBoxLayout*hl; QPushButton*p; + QLabel*lab; + QFrame*frm; //Shopping Cart Tab setLayout(vl=new QVBoxLayout); @@ -65,12 +67,17 @@ MCartTab::MCartTab(QString pk) hl2->addSpacing(15); hl2->addWidget(p=new QPushButton(tr("Remove Line")),0); connect(p,SIGNAL(clicked()),this,SLOT(cartRemoveItem())); + vl2->addWidget(frm=new QFrame,0); + frm->setFrameShape(QFrame::HLine); vl2->addLayout(hl2=new QHBoxLayout,0); - hl2->addWidget(new QLabel(tr("Total Price Sum:"))); + hl2->addWidget(lab=new QLabel(tr("Total Price Sum:"))); + QFont fnt=lab->font(); + fnt.setPointSizeF(fnt.pointSizeF()*1.5); + lab->setFont(fnt); hl2->addWidget(price=new QLabel("0.0")); + price->setFont(fnt); hl2->addStretch(1); - QFrame*frm; hl->addWidget(frm=new QFrame,0); frm->setFrameShape(QFrame::VLine); hl->addLayout(vl2=new QVBoxLayout,1); -- 1.7.2.5