mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fixed compile on Linux.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4624 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
29c090fb44
commit
b3bcfe9d30
@ -202,12 +202,12 @@ bool p3HistoryMgr::loadList(std::list<RsItem*>& load)
|
|||||||
if (NULL != (rskv = dynamic_cast<RsConfigKeyValueSet*>(*it))) {
|
if (NULL != (rskv = dynamic_cast<RsConfigKeyValueSet*>(*it))) {
|
||||||
for (std::list<RsTlvKeyValue>::const_iterator kit = rskv->tlvkvs.pairs.begin(); kit != rskv->tlvkvs.pairs.end(); kit++) {
|
for (std::list<RsTlvKeyValue>::const_iterator kit = rskv->tlvkvs.pairs.begin(); kit != rskv->tlvkvs.pairs.end(); kit++) {
|
||||||
if (kit->key == "PUBLIC_ENABLE") {
|
if (kit->key == "PUBLIC_ENABLE") {
|
||||||
mPublicEnable = (kit->value == "TRUE") ? TRUE : FALSE;
|
mPublicEnable = (kit->value == "TRUE") ? true : false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (kit->key == "PRIVATE_ENABLE") {
|
if (kit->key == "PRIVATE_ENABLE") {
|
||||||
mPrivateEnable = (kit->value == "TRUE") ? TRUE : FALSE;
|
mPrivateEnable = (kit->value == "TRUE") ? true : false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ PopupChatDialog::PopupChatDialog(const std::string &id, const QString &name, QWi
|
|||||||
ui.chattextEdit->installEventFilter(this);
|
ui.chattextEdit->installEventFilter(this);
|
||||||
|
|
||||||
// add offline chat messages
|
// add offline chat messages
|
||||||
onPrivateChatChanged(NOTIFY_LIST_PRIVATE_OUTGOING_CHAT, NOTIFY_TYPE_ADD, true);
|
onPrivateChatChanged(NOTIFY_LIST_PRIVATE_OUTGOING_CHAT, NOTIFY_TYPE_ADD);
|
||||||
|
|
||||||
#ifdef RS_RELEASE_VERSION
|
#ifdef RS_RELEASE_VERSION
|
||||||
ui.attachPictureButton->setVisible(false);
|
ui.attachPictureButton->setVisible(false);
|
||||||
@ -482,7 +482,7 @@ void PopupChatDialog::activate()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PopupChatDialog::onPrivateChatChanged(int list, int type, bool initial /*= false*/)
|
void PopupChatDialog::onPrivateChatChanged(int list, int type)
|
||||||
{
|
{
|
||||||
if (list == NOTIFY_LIST_PRIVATE_OUTGOING_CHAT) {
|
if (list == NOTIFY_LIST_PRIVATE_OUTGOING_CHAT) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
@ -119,7 +119,7 @@ private:
|
|||||||
void addAttachment(std::string,int flag);
|
void addAttachment(std::string,int flag);
|
||||||
void processSettings(bool bLoad);
|
void processSettings(bool bLoad);
|
||||||
|
|
||||||
void onPrivateChatChanged(int list, int type, bool initial = false);
|
void onPrivateChatChanged(int list, int type);
|
||||||
|
|
||||||
QAction *actionTextBold;
|
QAction *actionTextBold;
|
||||||
QAction *actionTextUnderline;
|
QAction *actionTextUnderline;
|
||||||
|
@ -61,7 +61,7 @@ static bool isSmall(const QSize &size)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AvatarWidget::resizeEvent(QResizeEvent *event)
|
void AvatarWidget::resizeEvent(QResizeEvent */*event*/)
|
||||||
{
|
{
|
||||||
if (mFrameType == NO_FRAME) {
|
if (mFrameType == NO_FRAME) {
|
||||||
return;
|
return;
|
||||||
@ -81,7 +81,7 @@ void AvatarWidget::resizeEvent(QResizeEvent *event)
|
|||||||
refreshStatus();
|
refreshStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AvatarWidget::mouseReleaseEvent(QMouseEvent *event)
|
void AvatarWidget::mouseReleaseEvent(QMouseEvent */*event*/)
|
||||||
{
|
{
|
||||||
if (mFlag.isOwnId) {
|
if (mFlag.isOwnId) {
|
||||||
QByteArray ba;
|
QByteArray ba;
|
||||||
|
Loading…
Reference in New Issue
Block a user