From 300d045dd97b27cb17e4872331b09590973825c0 Mon Sep 17 00:00:00 2001 From: krepa098 Date: Fri, 3 Oct 2014 21:04:01 +0200 Subject: [PATCH] FileTransferInstance: return of the edges --- filetransferinstance.cpp | 27 +++++++++++++++++++++-- res.qrc | 1 + ui/fileTransferInstance/sliverRTEdge.png | Bin 0 -> 225 bytes 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 ui/fileTransferInstance/sliverRTEdge.png diff --git a/filetransferinstance.cpp b/filetransferinstance.cpp index 9ab0c75d3..22570aa53 100644 --- a/filetransferinstance.cpp +++ b/filetransferinstance.cpp @@ -391,10 +391,33 @@ QString FileTransferInstance::draw2ButtonsForm(const QString &type, const QImage QString FileTransferInstance::wrapIntoForm(const QString& content, const QString &type, const QString &imgAstr, const QString &imgBstr) { - QString res; + QString w = QString::number(QImage(":/ui/fileTransferInstance/emptyLRedFileButton.png").size().width()); + QString imgLeftA, imgLeftB; + if (type == "green") + { + imgLeftA = ""; + imgLeftB = ""; + } + + if (type == "silver") + { + imgLeftA = ""; + imgLeftB = ""; + } + + if (type == "red") + { + imgLeftA = ""; + imgLeftB = ""; + } + + QString res; res = "\n"; res += "\n"; + res += "\n"; res += insertMiniature(type); res += "\n"; res += "\n"; res += "\n"; res += "
\n"; + res += "
" + imgLeftA + "
" + imgLeftB + "
\n"; + res += "
\n"; res += "
"; @@ -402,7 +425,7 @@ QString FileTransferInstance::wrapIntoForm(const QString& content, const QString res += "
\n"; res += "
\n"; - res += "
" + imgAstr + "
" + imgBstr+ "
\n"; + res += "
" + imgAstr + "
" + imgBstr + "
\n"; res += "
\n"; diff --git a/res.qrc b/res.qrc index 5b4910039..17c26eb2c 100644 --- a/res.qrc +++ b/res.qrc @@ -146,5 +146,6 @@ img/avatar_mask.png img/group_2x.png ui/chatroomWidgets/genericChatroomWidget.css + ui/fileTransferInstance/sliverRTEdge.png diff --git a/ui/fileTransferInstance/sliverRTEdge.png b/ui/fileTransferInstance/sliverRTEdge.png new file mode 100644 index 0000000000000000000000000000000000000000..dd363d10799f5c83d81844040df4367462483a93 GIT binary patch literal 225 zcmeAS@N?(olHy`uVBq!ia0vp^l0YoO!3HF!sEAwuQfx`y?k)`fL2$v|<&%LToCO|{ z#S9F5M?jcysy3fAP>{XE)7O>#9v8Eaf!XHWTYz#5d7dtgAs)xyURWr2$U(&Q;^Y-e z1SaIjera?K=9uIZbbPzZa<+m6M$HcI*8RF}SD1EBKv2H4>TxIQ_n=eT_!n3CT0Cqs zRnpU)a6iqaEMrB*_5E=cJ-5sr-;!!9=6`a7d1jS@kf+K-7ZCC8gt!5(XwS7B3=e=d OGkCiCxvX