mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 05:39:11 -04:00
forum composer changes for better look & feel
* Added PlaceHolder text for title & message text. * Set default font family to "MS Sans Serif" * Fixed to get work Place Holder text on QTextEdit, seems there was a second unwanted line
This commit is contained in:
parent
eb247e009b
commit
ef5aebd2ea
2 changed files with 179 additions and 176 deletions
|
@ -86,6 +86,8 @@ CreateGxsForumMsg::CreateGxsForumMsg(const RsGxsGroupId &fId, const RsGxsMessage
|
|||
|
||||
QString text = mOId.isNull()?(pId.isNull() ? tr("Start New Thread") : tr("Post Forum Message")):tr("Edit Message");
|
||||
setWindowTitle(text);
|
||||
|
||||
ui.forumMessage->setPlaceholderText(tr ("Text"));
|
||||
|
||||
ui.headerFrame->setHeaderImage(QPixmap(":/icons/png/forums.png"));
|
||||
ui.headerFrame->setHeaderText(text);
|
||||
|
@ -318,7 +320,10 @@ void CreateGxsForumMsg::loadFormInformation()
|
|||
ui.forumSubject->setText(misc::removeNewLine(subj));
|
||||
|
||||
if (ui.forumSubject->text().isEmpty())
|
||||
{
|
||||
ui.forumSubject->setFocus();
|
||||
ui.forumSubject->setPlaceholderText(tr ("Title"));
|
||||
}
|
||||
else
|
||||
ui.forumMessage->setFocus();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue