Handle wxTextCtrl created with wxTE_DONTWRAP or wxTE_NO_VSCROLL under wxQt
This commit is contained in:
parent
0eaff271ed
commit
a0b0f524ff
1 changed files with 8 additions and 0 deletions
|
|
@ -367,6 +367,9 @@ public:
|
|||
|
||||
if ( flags & wxTE_RICH || flags & wxTE_RICH2 )
|
||||
m_edit->setAcceptRichText(true);
|
||||
|
||||
if ( flags & wxTE_DONTWRAP )
|
||||
m_edit->setLineWrapMode(QTextEdit::NoWrap);
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
@ -668,6 +671,11 @@ bool wxTextCtrl::Create(wxWindow *parent,
|
|||
if ( style & wxTE_MULTILINE )
|
||||
{
|
||||
m_qtEdit = new wxQtMultiLineEdit(new wxQtTextEdit(parent, this));
|
||||
|
||||
if ( style & wxTE_NO_VSCROLL )
|
||||
style &= ~wxVSCROLL;
|
||||
else
|
||||
style |= wxVSCROLL;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue