mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 07:29:33 -05:00
added QTextCursor for color, fixed color cursor problem when color is selected and cursor is not aktive
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@457 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4c210a5605
commit
d51af63d51
@ -293,6 +293,7 @@ void PopupChatDialog::setColor()
|
||||
colorChanged(currentColor);
|
||||
}
|
||||
ui.chattextEdit->setFocus();
|
||||
QTextCursor cursor = ui.chattextEdit->textCursor();
|
||||
}
|
||||
|
||||
void PopupChatDialog::colorChanged(const QColor &c)
|
||||
@ -302,15 +303,6 @@ void PopupChatDialog::colorChanged(const QColor &c)
|
||||
ui.colorButton->setIcon(pix);
|
||||
}
|
||||
|
||||
void PopupChatDialog::mergeFormatOnWordOrSelection(const QTextCharFormat &format)
|
||||
{
|
||||
//QTextCursor cursor = ui.chattextEdit->textCursor();
|
||||
/*if (!cursor.hasSelection())
|
||||
cursor.select(QTextCursor::WordUnderCursor);
|
||||
cursor.mergeCharFormat(format);*/
|
||||
//ui.chattextEdit->mergeCurrentCharFormat(format);
|
||||
}
|
||||
|
||||
void PopupChatDialog::getFont()
|
||||
{
|
||||
bool ok;
|
||||
|
@ -80,7 +80,6 @@ private slots:
|
||||
|
||||
private:
|
||||
|
||||
void mergeFormatOnWordOrSelection(const QTextCharFormat &format);
|
||||
void colorChanged(const QColor &c);
|
||||
|
||||
QAction *actionTextBold;
|
||||
|
Loading…
Reference in New Issue
Block a user