Qt: Use system DateTimeFormat in QDateTimeEdit
In extcap argument ExtArgTimestamp set DisplayFormat to system DateTimeFormat. Change-Id: I281d6cc1aa59e785a75d6f1c8ff9780ba5ad9eba Reviewed-on: https://code.wireshark.org/review/19863 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Roland Knall <rknall@gmail.com>
This commit is contained in:
parent
07c1832e85
commit
d5b053d26c
|
@ -74,6 +74,7 @@ QWidget * ExtArgTimestamp::createEditor(QWidget * parent)
|
|||
|
||||
ts = QDateTime::fromTime_t(text.toInt());
|
||||
tsBox = new QDateTimeEdit(ts, parent);
|
||||
tsBox->setDisplayFormat(QLocale::system().dateTimeFormat());
|
||||
tsBox->setCalendarPopup(true);
|
||||
|
||||
if ( _argument->tooltip != NULL )
|
||||
|
|
Loading…
Reference in New Issue