mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-08 14:22:31 -04:00
gui: chat: add auto shrink chattextedit
To shrink text edit form when it is convenient for browsing text browser. It just shrink/unshrink the edit here and there when switching between chat rooms. P.S. user should not resize chattextedit when it's shrinked P.P.S. okey, there is no "unshrink" maybe, but hope it's not big deal
This commit is contained in:
parent
56b6196fb2
commit
c6c6e11bec
7 changed files with 104 additions and 2 deletions
|
@ -135,6 +135,7 @@ void ChatPage::updateChatParams()
|
|||
Settings->setChatSendAsPlainTextByDef(ui.sendAsPlainTextByDef->isChecked());
|
||||
Settings->setChatLoadEmbeddedImages(ui.loadEmbeddedImages->isChecked());
|
||||
Settings->setChatDoNotSendIsTyping(ui.DontSendTyping->isChecked());
|
||||
Settings->setShrinkChatTextEdit(ui.shrinkChatTextEdit->isChecked());
|
||||
}
|
||||
|
||||
void ChatPage::updateChatSearchParams()
|
||||
|
@ -248,6 +249,7 @@ ChatPage::ChatPage(QWidget * parent, Qt::WindowFlags flags)
|
|||
connect(ui.sendAsPlainTextByDef, SIGNAL(toggled(bool)), this, SLOT(updateChatParams()));
|
||||
connect(ui.loadEmbeddedImages, SIGNAL(toggled(bool)), this, SLOT(updateChatParams()));
|
||||
connect(ui.DontSendTyping, SIGNAL(toggled(bool)), this, SLOT(updateChatParams()));
|
||||
connect(ui.shrinkChatTextEdit, SIGNAL(toggled(bool)), this, SLOT(updateChatParams()));
|
||||
|
||||
connect(ui.sbSearch_CharToStart, SIGNAL(valueChanged(int)), this, SLOT(updateChatSearchParams()));
|
||||
connect(ui.cbSearch_CaseSensitively, SIGNAL(toggled(bool)), this, SLOT(updateChatSearchParams()));
|
||||
|
@ -403,6 +405,7 @@ ChatPage::load()
|
|||
whileBlocking(ui.sendAsPlainTextByDef)->setChecked(Settings->getChatSendAsPlainTextByDef());
|
||||
whileBlocking(ui.loadEmbeddedImages)->setChecked(Settings->getChatLoadEmbeddedImages());
|
||||
whileBlocking(ui.DontSendTyping)->setChecked(Settings->getChatDoNotSendIsTyping());
|
||||
whileBlocking(ui.shrinkChatTextEdit)->setChecked(Settings->getShrinkChatTextEdit());
|
||||
|
||||
std::string advsetting;
|
||||
if(rsConfig->getConfigurationOption(RS_CONFIG_ADVANCED, advsetting) && (advsetting == "YES"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue