mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-21 06:01:15 +02:00
2021-08-11 Fred Gleason <fredg@paravelsystems.com>
* Added an 'RDDateEdit' widget. * Adjusted layout in the 'Test Import' dialog in rdadmin(1) to be compatible with short date format. * Adjusted layout in the 'Cut Info/Record' dialog in rdlibrary(1) to be compatible with short date format. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -25,4 +25,26 @@ RDDateEdit::RDDateEdit(QWidget *parent)
|
||||
: QDateEdit(parent)
|
||||
{
|
||||
setDisplayFormat(rda->shortDateFormat());
|
||||
|
||||
d_read_only=false;
|
||||
}
|
||||
|
||||
|
||||
bool RDDateEdit::isReadOnly()
|
||||
{
|
||||
return d_read_only;
|
||||
}
|
||||
|
||||
|
||||
void RDDateEdit::setReadOnly(bool state)
|
||||
{
|
||||
if(d_read_only!=state) {
|
||||
if(state) {
|
||||
setDateRange(date(),date());
|
||||
}
|
||||
else {
|
||||
setDateRange(QDate(),QDate());
|
||||
}
|
||||
d_read_only=state;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user