mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-15 09:36:23 -04:00
Added tabbed PopupChatWindow. You can switch to tabbed chat window in the settings (NotifyPage).
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3797 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1e28183c2d
commit
39907c1afc
14 changed files with 1504 additions and 1036 deletions
|
@ -22,6 +22,7 @@
|
|||
#include <QColor>
|
||||
#include <QFont>
|
||||
#include <QDateTime>
|
||||
#include <QWidget>
|
||||
|
||||
#include <string>
|
||||
#include <list>
|
||||
|
@ -155,3 +156,43 @@ void RsharePeerSettings::setPrivateChatFont(const std::string &peerId, const QSt
|
|||
{
|
||||
set(peerId, "PrivateChatFont", value);
|
||||
}
|
||||
|
||||
void RsharePeerSettings::saveWidgetInformation(const std::string &peerId, QWidget *widget)
|
||||
{
|
||||
std::string gpgId;
|
||||
if (getGpgIdOfSslId(peerId, gpgId) == false) {
|
||||
/* gpg id not found */
|
||||
return;
|
||||
}
|
||||
|
||||
beginGroup(QString::fromStdString(gpgId));
|
||||
beginGroup("widgetInformation");
|
||||
beginGroup(widget->objectName());
|
||||
|
||||
setValue("size", widget->size());
|
||||
setValue("pos", widget->pos());
|
||||
|
||||
endGroup();
|
||||
endGroup();
|
||||
endGroup();
|
||||
}
|
||||
|
||||
void RsharePeerSettings::loadWidgetInformation(const std::string &peerId, QWidget *widget)
|
||||
{
|
||||
std::string gpgId;
|
||||
if (getGpgIdOfSslId(peerId, gpgId) == false) {
|
||||
/* gpg id not found */
|
||||
return;
|
||||
}
|
||||
|
||||
beginGroup(QString::fromStdString(gpgId));
|
||||
beginGroup("widgetInformation");
|
||||
beginGroup(widget->objectName());
|
||||
|
||||
widget->resize(value("size", widget->size()).toSize());
|
||||
widget->move(value("pos", QPoint(200, 200)).toPoint());
|
||||
|
||||
endGroup();
|
||||
endGroup();
|
||||
endGroup();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue