mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kio: set the placeholder text of the device widget from KDevicePropsPlugin constructor
instead of using the label as hint what to enter in case there are no devices detected Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
a43c910960
commit
c66d486a0e
1 changed files with 3 additions and 6 deletions
|
@ -2672,15 +2672,14 @@ KDevicePropsPlugin::KDevicePropsPlugin( KPropertiesDialog *_props ) : KPropertie
|
|||
layout->setColumnStretch(1, 1);
|
||||
|
||||
QLabel* label = new QLabel( d->m_frame );
|
||||
label->setText( devices.count() == 0 ?
|
||||
i18n("Device (/dev/fd0):") : // old style
|
||||
i18n("Device:") ); // new style (combobox)
|
||||
label->setText( i18n("Device:") );
|
||||
layout->addWidget(label, 0, 0, Qt::AlignRight);
|
||||
|
||||
d->device = new KComboBox( d->m_frame );
|
||||
d->device->setObjectName( QLatin1String( "ComboBox_device" ) );
|
||||
d->device->setEditable( true );
|
||||
d->device->addItems( devices );
|
||||
d->device->lineEdit()->setPlaceholderText( i18n("Enter device...") );
|
||||
layout->addWidget(d->device, 0, 1);
|
||||
connect( d->device, SIGNAL(activated(int)),
|
||||
this, SLOT(slotActivated(int)) );
|
||||
|
@ -2691,9 +2690,7 @@ KDevicePropsPlugin::KDevicePropsPlugin( KPropertiesDialog *_props ) : KPropertie
|
|||
layout->addWidget(d->readonly, 1, 1);
|
||||
|
||||
label = new QLabel( d->m_frame );
|
||||
label->setText( devices.count()==0 ?
|
||||
i18n("Mount point (/mnt/floppy):") : // old style
|
||||
i18n("Mount point:")); // new style (combobox)
|
||||
label->setText( i18n("Mount point:") );
|
||||
layout->addWidget(label, 2, 0, Qt::AlignRight);
|
||||
|
||||
d->mountpoint = new QLabel( d->m_frame );
|
||||
|
|
Loading…
Add table
Reference in a new issue