Projekt

Allgemein

Profil

Bug #330 » 0002-gui-qt-Add-support-for-read-only-line-editing-widget.patch

Patch with fix - rhabacker, 09.12.2025 13:18

Unterschiede anzeigen:

gui/qt4/w_lineedit.cpp
if (flags & GWEN_WIDGET_FLAGS_FILLY)
vpolicy=QSizePolicy::Expanding;
qw->setSizePolicy(hpolicy, vpolicy);
qw->setEnabled((flags & GWEN_WIDGET_FLAGS_READONLY)?false:true);
if (flags & GWEN_WIDGET_FLAGS_PASSWORD)
qw->setEchoMode(QLineEdit::Password);
gui/qt5/w_lineedit.cpp
if (flags & GWEN_WIDGET_FLAGS_FILLY)
vpolicy=QSizePolicy::Expanding;
qw->setSizePolicy(hpolicy, vpolicy);
qw->setEnabled((flags & GWEN_WIDGET_FLAGS_READONLY)?false:true);
if (flags & GWEN_WIDGET_FLAGS_PASSWORD)
qw->setEchoMode(QLineEdit::Password);
(1-1/3)