Merge pull request #31 from RetroShare/master

update to master
This commit is contained in:
defnax 2019-11-23 23:03:56 +01:00 committed by GitHub
commit 94afa6dbf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 218 additions and 42 deletions

2
.gitignore vendored
View File

@ -11,4 +11,4 @@ Makefile*
Thumbs.db
*.pro.user
.kdev4
*.kdev4
*.kdev4

View File

@ -44,5 +44,6 @@
</array>
</dict>
</array>
<key>NSRequiresAquaSystemAppearance</key> <true/>
</dict>
</plist>

View File

@ -71,14 +71,14 @@
#define IMAGE_CREATE ""
#define IMAGE_PUBLIC ":/icons/png/chats.png"
#define IMAGE_PRIVATE ":/icons/png/chats-private.png"
#define IMAGE_SUBSCRIBE ":/images/edit_add24.png"
#define IMAGE_UNSUBSCRIBE ":/images/cancel.png"
#define IMAGE_SUBSCRIBE ":/icons/png/enter.png"
#define IMAGE_UNSUBSCRIBE ":/icons/png/leave2.png"
#define IMAGE_PEER_ENTERING ":images/user/add_user24.png"
#define IMAGE_PEER_LEAVING ":images/user/remove_user24.png"
#define IMAGE_TYPING ":images/typing.png"
#define IMAGE_TYPING ":images/typing.png"
#define IMAGE_MESSAGE ":images/chat.png"
#define IMAGE_AUTOSUBSCRIBE ":images/accepted16.png"
#define IMAGE_COPYRSLINK ":/images/copyrslink.png"
#define IMAGE_COPYRSLINK ":/icons/png/copy.png"
ChatLobbyWidget::ChatLobbyWidget(QWidget *parent, Qt::WindowFlags flags)
: RsAutoUpdatePage(5000, parent, flags)

View File

@ -121,8 +121,11 @@
#include <unistd.h>
#define IMAGE_QUIT ":/icons/png/exit.png"
#define IMAGE_PREFERENCES ":/icons/png/options.png"
#define IMAGE_PREFERENCES ":/icons/png/options2.png"
#define IMAGE_ABOUT ":/icons/png/info.png"
#define IMAGE_STATS ":/icons/png/netgraph2.png"
#define IMAGE_CLOSE ":/icons/png/exit2.png"
#define IMAGE_ADDFRIEND ":/icons/png/invite.png"
#define IMAGE_RETROSHARE ":/icons/logo_128.png"
#define IMAGE_NOONLINE ":/icons/logo_0_connected_128.png"
@ -130,9 +133,8 @@
#define IMAGE_TWOONLINE ":/icons/logo_2_connected_128.png"
#define IMAGE_OVERLAY ":/icons/star_overlay_128.png"
#define IMAGE_BWGRAPH ":/images/ksysguard.png"
#define IMAGE_BWGRAPH ":/icons/png/bandwidth.png"
#define IMAGE_MESSENGER ":/images/rsmessenger48.png"
#define IMAGE_CLOSE ":/images/close_normal.png"
#define IMAGE_BLOCK ":/images/blockdevice.png"
#define IMAGE_COLOR ":/images/highlight.png"
#define IMAGE_GAMES ":/images/kgames.png"
@ -146,7 +148,6 @@
#define IMAGE_PLUGINS ":/images/extension_32.png"
#define IMAGE_BLOGS ":/images/kblogger.png"
#define IMAGE_DHT ":/images/dht16.png"
/*static*/ bool MainWindow::hiddenmode = false;
@ -609,7 +610,7 @@ void MainWindow::createTrayIcon()
trayMenu->addAction(QIcon(":/images/emblem-web.png"), tr("Show web interface"), this, SLOT(showWebinterface()));
#endif // ENABLE_WEBUI
trayMenu->addAction(QIcon(IMAGE_BWGRAPH), tr("Bandwidth Graph"), this, SLOT(showBandwidthGraph()));
trayMenu->addAction(QIcon(IMAGE_DHT), tr("Statistics"), this, SLOT(showStatisticsWindow()));
trayMenu->addAction(QIcon(IMAGE_STATS), tr("Statistics"), this, SLOT(showStatisticsWindow()));
#ifdef UNFINISHED

View File

@ -132,8 +132,8 @@ ChatLobbyDialog::ChatLobbyDialog(const ChatLobbyId& lid, QWidget *parent, Qt::Wi
// Add a button to invite friends.
//
inviteFriendsButton = new QToolButton ;
inviteFriendsButton->setMinimumSize(icon_size);
inviteFriendsButton->setMaximumSize(icon_size);
//inviteFriendsButton->setMinimumSize(icon_size);
//inviteFriendsButton->setMaximumSize(icon_size);
inviteFriendsButton->setText(QString()) ;
inviteFriendsButton->setAutoRaise(true) ;
inviteFriendsButton->setToolTip(tr("Invite friends to this lobby"));
@ -177,8 +177,8 @@ ChatLobbyDialog::ChatLobbyDialog(const ChatLobbyId& lid, QWidget *parent, Qt::Wi
connect(ownIdChooser,SIGNAL(currentIndexChanged(int)),this,SLOT(changeNickname())) ;
unsubscribeButton = new QToolButton;
unsubscribeButton->setMinimumSize(icon_size);
unsubscribeButton->setMaximumSize(icon_size);
//unsubscribeButton->setMinimumSize(icon_size);
//unsubscribeButton->setMaximumSize(icon_size);
unsubscribeButton->setText(QString()) ;
unsubscribeButton->setAutoRaise(true) ;
unsubscribeButton->setToolTip(tr("Leave this chat room (Unsubscribe)"));

View File

@ -807,17 +807,20 @@ border-image: url(:/images/closepressed.png)
<enum>QFrame::Plain</enum>
</property>
<layout class="QHBoxLayout" name="pluginTitleFrameHLayout">
<property name="spacing">
<number>3</number>
</property>
<property name="leftMargin">
<number>2</number>
</property>
<property name="topMargin">
<number>2</number>
<number>0</number>
</property>
<property name="rightMargin">
<number>2</number>
</property>
<property name="bottomMargin">
<number>2</number>
<number>0</number>
</property>
</layout>
</widget>

View File

@ -24,6 +24,7 @@
#include <QMenu>
#include <QDir>
#include <QMimeData>
#include <QTextDocumentFragment>
#include "CreateGxsChannelMsg.h"
#include "gui/gxs/GxsIdDetails.h"
@ -72,7 +73,8 @@ CreateGxsChannelMsg::CreateGxsChannelMsg(const RsGxsGroupId &cId, RsGxsMessageId
connect(thumbNailCb, SIGNAL(toggled(bool)), this, SLOT(allowAutoMediaThumbNail(bool)));
connect(tabWidget, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(contextMenu(QPoint)));
connect(generateCheckBox, SIGNAL(toggled(bool)), generateSpinBox, SLOT(setEnabled(bool)));
connect(addPictureButton, SIGNAL(clicked()), this, SLOT(addPicture()));
connect(msgEdit, SIGNAL(textChanged()), this, SLOT(checkLength()));
generateSpinBox->setEnabled(false);
thumbNailCb->setVisible(false);
@ -94,6 +96,26 @@ CreateGxsChannelMsg::CreateGxsChannelMsg(const RsGxsGroupId &cId, RsGxsMessageId
#endif
}
static const uint32_t MAX_ALLOWED_GXS_MESSAGE_SIZE = 199000;
void CreateGxsChannelMsg::checkLength()
{
QString text;
RsHtml::optimizeHtml(msgEdit, text);
std::wstring msg = text.toStdWString();
int charRemains = MAX_ALLOWED_GXS_MESSAGE_SIZE - msg.length();
if(charRemains >= 0) {
text = tr("It remains %1 characters after HTML conversion.").arg(charRemains);
infoLabel->setStyleSheet("QLabel#infoLabel { }");
}else{
text = tr("Warning: This message is too big of %1 characters after HTML conversion.").arg((0-charRemains));
infoLabel->setStyleSheet("QLabel#infoLabel {color: red; font: bold; }");
}
buttonBox->button(QDialogButtonBox::Ok)->setToolTip(text);
buttonBox->button(QDialogButtonBox::Ok)->setEnabled(charRemains>=0);
infoLabel->setText(text);
}
CreateGxsChannelMsg::~CreateGxsChannelMsg()
{
Settings->saveWidgetInformation(this);
@ -741,6 +763,18 @@ void CreateGxsChannelMsg::addThumbnail()
thumbnail_label->setPixmap(picture);
}
void CreateGxsChannelMsg::addPicture()
{
QString file;
if (misc::getOpenFileName(window(), RshareSettings::LASTDIR_IMAGES, tr("Load Picture File"), "Pictures (*.png *.xpm *.jpg *.jpeg)", file)) {
QString encodedImage;
if (RsHtml::makeEmbeddedImage(file, encodedImage, 640*480, MAX_ALLOWED_GXS_MESSAGE_SIZE - 200)) {
QTextDocumentFragment fragment = QTextDocumentFragment::fromHtml(encodedImage);
msgEdit->textCursor().insertFragment(fragment);
}
}
}
void CreateGxsChannelMsg::loadChannelPostInfo(const uint32_t &token)
{
#ifdef DEBUG_CREATE_GXS_MSG

View File

@ -69,6 +69,8 @@ private slots:
void contextMenu(QPoint) ;
void addThumbnail();
void addPicture();
void checkLength();
void allowAutoMediaThumbNail(bool);
private:

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>875</width>
<height>659</height>
<width>671</width>
<height>513</height>
</rect>
</property>
<property name="acceptDrops">
@ -96,19 +96,6 @@
</item>
<item row="1" column="0">
<layout class="QGridLayout" name="channelAttachGLayout">
<item row="0" column="0" colspan="2">
<widget class="QLabel" name="channelAttachLabel">
<property name="text">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:10pt; font-weight:600;&quot;&gt;Attachments:&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;img src=&quot;:/images/feedback_arrow.png&quot; /&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot;&gt; Use Drag and Drop / Add Files button, to Hash new files.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;img src=&quot;:/images/feedback_arrow.png&quot; /&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot;&gt; Copy/Paste RetroShare links from your shares&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="addfilepushButton">
<property name="text">
@ -131,6 +118,30 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QPushButton" name="addPictureButton">
<property name="text">
<string>Add Picture</string>
</property>
<property name="icon">
<iconset resource="../images.qrc">
<normaloff>:/images/add_image24.png</normaloff>:/images/add_image24.png</iconset>
</property>
</widget>
</item>
<item row="0" column="0" colspan="3">
<widget class="QLabel" name="channelAttachLabel">
<property name="text">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:10pt; font-weight:600;&quot;&gt;Attachments:&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;img src=&quot;:/images/feedback_arrow.png&quot; /&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot;&gt; Use Drag and Drop / Add Files button, to Hash new files.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;img src=&quot;:/images/feedback_arrow.png&quot; /&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot;&gt; Copy/Paste RetroShare links from your shares&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="1">
@ -194,6 +205,13 @@ p, li { white-space: pre-wrap; }
<item>
<widget class="MimeTextEdit" name="msgEdit"/>
</item>
<item>
<widget class="QLabel" name="infoLabel">
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</widget>
</item>
@ -302,8 +320,8 @@ p, li { white-space: pre-wrap; }
<rect>
<x>0</x>
<y>0</y>
<width>767</width>
<height>42</height>
<width>812</width>
<height>24</height>
</rect>
</property>
<property name="sizePolicy">
@ -390,17 +408,17 @@ p, li { white-space: pre-wrap; }
</layout>
</widget>
<customwidgets>
<customwidget>
<class>MimeTextEdit</class>
<extends>QTextEdit</extends>
<header location="global">gui/common/MimeTextEdit.h</header>
</customwidget>
<customwidget>
<class>HeaderFrame</class>
<extends>QFrame</extends>
<header>gui/common/HeaderFrame.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>MimeTextEdit</class>
<extends>QTextEdit</extends>
<header location="global">gui/common/MimeTextEdit.h</header>
</customwidget>
</customwidgets>
<resources>
<include location="../images.qrc"/>

View File

@ -80,6 +80,7 @@
<file>icons/png/chat-lobbies.png</file>
<file>icons/png/circles.png</file>
<file>icons/png/empty-circle.png</file>
<file>icons/png/enter.png</file>
<file>icons/png/exit.png</file>
<file>icons/png/feedreader-notify.png</file>
<file>icons/png/feedreader.png</file>
@ -98,14 +99,16 @@
<file>icons/png/invite.png</file>
<file>icons/png/keyring.png</file>
<file>icons/png/leave.png</file>
<file>icons/png/leave2.png</file>
<file>icons/png/messages-notify.png</file>
<file>icons/png/messages.png</file>
<file>icons/png/microphone_mute.png</file>
<file>icons/png/microphone.png</file>
<file>icons/png/netgraph.png</file>
<file>icons/png/netgraph2.png</file>
<file>icons/png/network-notify.png</file>
<file>icons/png/network.png</file>
<file>icons/png/network2.png</file>
<file>icons/png/network2.png</file>
<file>icons/png/network-puplic.png</file>
<file>icons/png/newsfeed-notify.png</file>
<file>icons/png/newsfeed.png</file>
@ -271,12 +274,16 @@
<file>icons/png/correct.png</file>
<file>icons/png/comment.png</file>
<file>icons/png/chats.png</file>
<file>icons/png/chats-private.png</file>
<file>icons/png/chats-private.png</file>
<file>icons/png/fileshare.png</file>
<file>icons/png/forum.png</file>
<file>icons/png/message.png</file>
<file>icons/png/newsfeed2.png</file>
<file>icons/png/postedlinks.png</file>
<file>icons/png/people2.png</file>
<file>icons/png/bandwidth.png</file>
<file>icons/png/netgraph2.png</file>
<file>icons/png/options2.png</file>
<file>icons/png/exit2.png</file>
</qresource>
</RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="svg4155"
version="1.1"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
xml:space="preserve"
width="128"
height="128"
viewBox="0 0 128 128"
sodipodi:docname="netgraph2.svg"><metadata
id="metadata4161"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs4159" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1152"
inkscape:window-height="801"
id="namedview4157"
showgrid="false"
inkscape:zoom="1.8097514"
inkscape:cx="63.846549"
inkscape:cy="58.330325"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="g4163"
units="in" /><g
id="g4163"
inkscape:groupmode="layer"
inkscape:label="ink_ext_XXXXXX"
transform="matrix(1.25,0,0,-1.25,0,128)"><path
inkscape:connector-curvature="0"
style="fill:#039bd5;fill-opacity:1;stroke-width:1.91469252"
d="m 87.283675,52.339305 c -2.372068,0 -4.470776,-1.187702 -5.736989,-2.99843 l -5.158733,0.893867 c 0.0065,0.193773 0.01609,0.387455 0.01609,0.582848 0,2.289997 -0.454194,4.47511 -1.271842,6.47457 l 8.737195,5.271507 c 1.1757,-0.895385 2.641125,-1.428095 4.229609,-1.428095 3.858487,0 6.997575,3.139087 6.997575,6.997575 0,3.858262 -3.139088,6.997058 -6.997575,6.997058 -3.858262,0 -6.997056,-3.138796 -6.997056,-6.997058 0,-0.40997 0.0372,-0.810983 0.105442,-1.20177 l -8.69366,-5.245174 c -2.637827,3.21579 -6.418577,5.458977 -10.715697,6.103967 v 10.734103 c 3.206344,1.07263 5.525225,4.102248 5.525225,7.665087 3.3e-5,4.456963 -3.626019,8.083242 -8.08269,8.083242 -4.456477,0 -8.082238,-3.62602 -8.082238,-8.083242 0,-3.562839 2.318139,-6.592197 5.524709,-7.665087 V 67.79017 C 50.827458,66.911417 45.934189,63.062376 43.581823,57.83205 l -16.009198,4.917303 c 0.04821,0.395645 0.07571,0.79769 0.07571,1.20611 0,5.490449 -4.466442,9.957376 -9.956633,9.957376 -5.490676,0 -9.9573769,-4.466927 -9.9573769,-9.957376 0,-5.490191 4.4667009,-9.956859 9.9576379,-9.956859 3.253152,0 6.146183,1.568526 7.964322,3.988437 l 16.552158,-5.084068 c -0.08313,-0.684139 -0.131348,-1.379019 -0.131348,-2.085123 0,-4.603511 1.825545,-8.786308 4.786126,-11.871691 L 39.65233,31.271628 c -1.052413,0.469817 -2.216854,0.733246 -3.442141,0.733246 -4.674841,0 -8.477591,-3.803007 -8.477591,-8.477623 0,-4.674097 3.80275,-8.476845 8.477591,-8.476845 4.674095,0 8.477103,3.802748 8.477103,8.476845 0,1.589747 -0.440674,3.077945 -1.204845,4.350823 l 7.449502,7.928771 c 2.463619,-1.369022 5.295799,-2.151894 8.308787,-2.151894 2.878217,0 5.59148,0.715585 7.976874,1.973129 l 7.433106,-11.302363 c -1.810958,-1.804065 -2.933699,-4.298674 -2.933699,-7.050534 0,-5.490449 4.46693,-9.9573763 9.95738,-9.9573763 5.49045,0 9.957376,4.4666663 9.957376,9.9573763 0,5.490192 -4.466926,9.956861 -9.957376,9.956861 -0.894609,0 -1.761625,-0.120338 -2.58694,-0.342945 l -7.742821,11.77293 c 1.829879,1.821986 3.248527,4.054399 4.112468,6.543896 l 4.90223,-0.84935 c 0.480528,-3.393035 3.40274,-6.011415 6.926209,-6.011415 3.858522,0 6.997577,3.139085 6.997577,6.997573 -4.22e-4,3.857746 -3.139574,6.996572 -6.998095,6.996572 z M 47.190515,50.81785 c 0,6.6436 5.405014,12.048647 12.048388,12.048647 6.643858,0 12.048644,-5.405047 12.048644,-12.048647 0,-6.643375 -5.405046,-12.04813 -12.048644,-12.04813 -6.643374,0 -12.048388,5.404755 -12.048388,12.04813 z"
id="path3" /></g></svg>

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="svg4155"
version="1.1"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
xml:space="preserve"
width="80"
height="80"
viewBox="0 0 80 80"
sodipodi:docname="options-blank.svg"><metadata
id="metadata4161"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs4159" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1152"
inkscape:window-height="801"
id="namedview4157"
showgrid="true"
inkscape:zoom="5.11875"
inkscape:cx="41.764889"
inkscape:cy="40.251477"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="g4163"><inkscape:grid
type="xygrid"
id="grid4144" /></sodipodi:namedview><g
id="g4163"
inkscape:groupmode="layer"
inkscape:label="ink_ext_XXXXXX"
transform="matrix(1.25,0,0,-1.25,0,80)"><g
id="g3"
transform="matrix(1.03345,0,0,-1.03345,4.1240623,60.304676)"
style="fill:#039bd5;fill-opacity:1"><path
d="M 53.188,23.518 50.06,22.916 c -1.842,-0.354 -3.351,-1.607 -4.035,-3.354 -0.686,-1.745 -0.433,-3.69 0.677,-5.203 l 1.964,-2.679 c 0.292,-0.397 0.249,-0.949 -0.1,-1.298 L 44.324,6.14 C 43.985,5.801 43.453,5.75 43.056,6.019 l -2.638,1.786 c -0.91,0.616 -1.958,0.942 -3.033,0.942 -2.713,0 -4.98,-1.941 -5.393,-4.617 L 31.487,0.847 C 31.414,0.36 30.994,0 30.5,0 h -6 c -0.479,0 -0.892,0.341 -0.982,0.812 l -0.777,4.041 c -0.492,2.559 -2.746,4.416 -5.357,4.416 -1.075,0 -2.125,-0.325 -3.033,-0.941 L 10.944,6.02 C 10.547,5.752 10.015,5.802 9.676,6.141 l -4.243,4.242 c -0.349,0.349 -0.391,0.9 -0.1,1.299 l 1.964,2.679 c 1.109,1.512 1.362,3.457 0.677,5.203 -0.686,1.745 -2.194,2.999 -4.036,3.353 L 0.81,23.519 C 0.34,23.608 0,24.021 0,24.5 v 6 c 0,0.493 0.36,0.913 0.848,0.988 l 3.283,0.505 c 1.853,0.285 3.408,1.481 4.157,3.2 0.75,1.72 0.57,3.673 -0.482,5.226 L 6.02,43.057 c -0.269,0.396 -0.218,0.929 0.121,1.268 l 4.242,4.242 c 0.349,0.348 0.899,0.393 1.298,0.1 l 2.679,-1.964 c 0.944,-0.692 2.05,-1.059 3.197,-1.059 2.613,0 4.867,1.857 5.359,4.416 l 0.602,3.129 C 23.608,53.659 24.021,54 24.5,54 h 6 c 0.494,0 0.913,-0.36 0.988,-0.848 l 0.355,-2.309 c 0.466,-3.032 3.067,-4.618 5.396,-4.618 1.146,0 2.25,0.366 3.196,1.06 l 1.884,1.381 c 0.399,0.293 0.95,0.248 1.298,-0.1 l 4.242,-4.242 c 0.339,-0.339 0.39,-0.871 0.121,-1.268 l -1.786,-2.638 c -1.052,-1.553 -1.232,-3.506 -0.482,-5.226 0.75,-1.719 2.304,-2.915 4.157,-3.2 l 3.283,-0.505 C 53.64,31.413 54,30.993 54,30.5 v -6 c 0,-0.479 -0.34,-0.892 -0.812,-0.982 z M 36,27.5 C 36,32.187 32.187,36 27.5,36 22.813,36 19,32.187 19,27.5 19,22.813 22.813,19 27.5,19 c 4.687,0 8.5,3.813 8.5,8.5 z"
id="path5"
inkscape:connector-curvature="0"
style="fill:#039bd5;fill-opacity:1" /><path
d="M 27.5,22 C 24.467,22 22,24.468 22,27.5 22,30.532 24.467,33 27.5,33 30.533,33 33,30.532 33,27.5 33,24.468 30.533,22 27.5,22 Z"
id="path7"
inkscape:connector-curvature="0"
style="fill:#039bd5;fill-opacity:1" /></g></g></svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -26,7 +26,7 @@
#include "mainpage.h"
#include "ui_MessagesDialog.h"
#define IMAGE_MESSAGES ":/icons/png/messages.png"
#define IMAGE_MESSAGES ":/icons/png/message.png"
class RSTreeWidgetItemCompareRole;
class MessageWidget;