KLineEdit > QLineEdit

parent 49cedc70
......@@ -25,7 +25,7 @@
#include <KIO/NetAccess>
#include <QVBoxLayout>
#include <KLineEdit>
#include <QLineEdit>
#include <QPlainTextEdit>
EncodingProfilesDialog::EncodingProfilesDialog(int profileType, QWidget * parent) :
......@@ -122,13 +122,13 @@ void EncodingProfilesDialog::slotAddProfile()
QPointer<QDialog> d = new QDialog(this);
QVBoxLayout *l = new QVBoxLayout;
l->addWidget(new QLabel(i18n("Profile name:")));
KLineEdit *pname = new KLineEdit;
QLineEdit *pname = new QLineEdit;
l->addWidget(pname);
l->addWidget(new QLabel(i18n("Parameters:")));
QPlainTextEdit *pparams = new QPlainTextEdit;
l->addWidget(pparams);
l->addWidget(new QLabel(i18n("File extension:")));
KLineEdit *pext = new KLineEdit;
QLineEdit *pext = new QLineEdit;
l->addWidget(pext);
QDialogButtonBox *box = new QDialogButtonBox(QDialogButtonBox::Save | QDialogButtonBox::Cancel);
connect(box, SIGNAL(accepted()), d, SLOT(accept()));
......@@ -154,13 +154,13 @@ void EncodingProfilesDialog::slotEditProfile()
QPointer<QDialog> d = new QDialog(this);
QVBoxLayout *l = new QVBoxLayout;
l->addWidget(new QLabel(i18n("Profile name:")));
KLineEdit *pname = new KLineEdit;
QLineEdit *pname = new QLineEdit;
l->addWidget(pname);
l->addWidget(new QLabel(i18n("Parameters:")));
QPlainTextEdit *pparams = new QPlainTextEdit;
l->addWidget(pparams);
l->addWidget(new QLabel(i18n("File extension:")));
KLineEdit *pext = new KLineEdit;
QLineEdit *pext = new QLineEdit;
l->addWidget(pext);
QDialogButtonBox *box = new QDialogButtonBox(QDialogButtonBox::Save | QDialogButtonBox::Cancel);
connect(box, SIGNAL(accepted()), d, SLOT(accept()));
......
......@@ -579,7 +579,7 @@ void RenderWidget::saveProfile(const QDomElement &newprofile)
if (profileName == newprofile.attribute("name")) {
// a profile with that same name already exists
bool ok;
QString newProfileName = QInputDialog::getText(this, i18n("Profile already exists"), i18n("This profile name already exists. Change the name if you don't want to overwrite it."), KLineEdit::Normal, profileName, &ok);
QString newProfileName = QInputDialog::getText(this, i18n("Profile already exists"), i18n("This profile name already exists. Change the name if you don't want to overwrite it."), QLineEdit::Normal, profileName, &ok);
if (!ok) return;
if (profileName == newProfileName) {
profiles.removeChild(profilelist.item(i));
......@@ -749,7 +749,7 @@ void RenderWidget::slotEditProfile()
if (profileName == newProfileName) {
// a profile with that same name already exists
bool ok;
newProfileName = QInputDialog::getText(this, i18n("Profile already exists"), i18n("This profile name already exists. Change the name if you don't want to overwrite it."), KLineEdit::Normal, newProfileName, &ok);
newProfileName = QInputDialog::getText(this, i18n("Profile already exists"), i18n("This profile name already exists. Change the name if you don't want to overwrite it."), QLineEdit::Normal, newProfileName, &ok);
if (!ok) return;
if (profileName == newProfileName) {
profiles.removeChild(profilelist.item(i));
......
......@@ -932,7 +932,7 @@ bool KdenliveDoc::setProfilePath(QString path)
QString newDesc = m_profile.description;
bool ok = true;
while (ok && (newDesc.isEmpty() || ProfilesDialog::existingProfileDescription(newDesc))) {
newDesc = QInputDialog::getText(kapp->activeWindow(), i18n("Existing Profile"), i18n("Your project uses an unknown profile.\nIt uses an existing profile name: %1.\nPlease choose a new name to save it", newDesc), KLineEdit::Normal, newDesc, &ok);
newDesc = QInputDialog::getText(kapp->activeWindow(), i18n("Existing Profile"), i18n("Your project uses an unknown profile.\nIt uses an existing profile name: %1.\nPlease choose a new name to save it", newDesc), QLineEdit::Normal, newDesc, &ok);
}
if (ok == false) {
// User canceled, use default profile
......
......@@ -36,7 +36,7 @@
#include <KColorScheme>
MyEditableLabel::MyEditableLabel(QWidget * parent):
KLineEdit(parent)
QLineEdit(parent)
{
setFrame(false);
setReadOnly(true);
......@@ -165,7 +165,7 @@ void CollapsibleGroup::slotEffectDown()
void CollapsibleGroup::slotSaveGroup()
{
QString name = QInputDialog::getText(this, i18n("Save Group"), i18n("Name for saved group: "), KLineEdit::Normal, m_title->text());
QString name = QInputDialog::getText(this, i18n("Save Group"), i18n("Name for saved group: "), QLineEdit::Normal, m_title->text());
if (name.isEmpty()) return;
QString path = QStandardPaths::writableLocation(QStandardPaths::DataLocation) + "/effects";
path = path + name + ".xml";
......
......@@ -27,11 +27,11 @@
#include "timecode.h"
#include "effectstack/keyframeedit.h"
#include <KLineEdit>
#include <QLineEdit>
#include <QMutex>
class MyEditableLabel : public KLineEdit
class MyEditableLabel : public QLineEdit
{
Q_OBJECT
public:
......
......@@ -747,7 +747,7 @@ void ParameterContainer::slotCollectAllParameters()
KUrlRequester *req = static_cast<Urlval*>(m_valueItems.value(paramName))->urlwidget;
setValue = req->url().path();
} else if (type == "keywords"){
KLineEdit *line = static_cast<Keywordval*>(m_valueItems.value(paramName))->lineeditwidget;
QLineEdit *line = static_cast<Keywordval*>(m_valueItems.value(paramName))->lineeditwidget;
KComboBox *combo = static_cast<Keywordval*>(m_valueItems.value(paramName))->comboboxwidget;
if(combo->currentIndex())
{
......
......@@ -96,7 +96,7 @@ void LayoutManagement::slotSaveLayout(QAction *action)
QString originallayoutName = action->data().toString();
int layoutId = originallayoutName.section('_', -1).toInt();
QString layoutName = QInputDialog::getText(pCore->window(), i18n("Save Layout"), i18n("Layout name:"), KLineEdit::Normal,
QString layoutName = QInputDialog::getText(pCore->window(), i18n("Save Layout"), i18n("Layout name:"), QLineEdit::Normal,
originallayoutName.section('_', 0, -2));
if (layoutName.isEmpty()) {
return;
......
......@@ -2465,7 +2465,7 @@ void MainWindow::slotSaveZone(Render *render, const QPoint &zone, DocClipBase *b
KUrlRequester *url = new KUrlRequester(path, this);
url->setFilter("video/mlt-playlist");
QLabel *label2 = new QLabel(i18n("Description:"), this);
KLineEdit *edit = new KLineEdit(this);
QLineEdit *edit = new QLineEdit(this);
mainLayout->addWidget(label1);
mainLayout->addWidget(url);
mainLayout->addWidget(label2);
......
......@@ -23,7 +23,7 @@ NotesPlugin::NotesPlugin(ProjectManager *projectManager) :
connect(m_widget, SIGNAL(insertNotesTimecode()), SLOT(slotInsertTimecode()));
m_widget->setTabChangesFocus(true);
#if KDE_IS_VERSION(4,4,0)
m_widget->setClickMessage(i18n("Enter your project notes here ..."));
m_widget->setPlaceholderText(i18n("Enter your project notes here ..."));
#endif
pCore->window()->addDock(i18n("Project Notes"), "notes_widget", m_widget);
......
......@@ -576,7 +576,7 @@ void TrackView::updatePalette()
p.setColor(QPalette::Button, norm);
QColor col = scheme.background().color();
QColor col2 = scheme.foreground().color();
headers_container->setStyleSheet(QString("KLineEdit { background-color: transparent;color: %1;} KLineEdit:hover{ background-color: %2;} KLineEdit:focus { background-color: %2;}").arg(col2.name()).arg(col.name()));
headers_container->setStyleSheet(QString("QLineEdit { background-color: transparent;color: %1;} QLineEdit:hover{ background-color: %2;} QLineEdit:focus { background-color: %2;}").arg(col2.name()).arg(col.name()));
m_trackview->updatePalette();
m_ruler->updatePalette();
......
......@@ -26,7 +26,7 @@
#include <QStyle>
#include <QStylePainter>
#include <QStyleOptionSlider>
#include <KLineEdit>
#include <QLineEdit>
#include <QValidator>
#include <QHBoxLayout>
#include <QMenu>
......@@ -116,7 +116,7 @@ KoSliderCombo::KoSliderCombo(QWidget *parent)
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
setEditable(true);
setEditText(KGlobal::locale()->formatNumber(0, d->decimals));
setEditText(QLocale().toString(0.0, 'f', d->decimals));
connect(d->slider, SIGNAL(valueChanged(int)), SLOT(sliderValueChanged(int)));
connect(d->slider, SIGNAL(sliderReleased()), SLOT(sliderReleased()));
......@@ -267,7 +267,7 @@ void KoSliderCombo::KoSliderComboPrivate::lineEditFinished()
void KoSliderCombo::KoSliderComboPrivate::sliderValueChanged(int slidervalue)
{
thePublic->setEditText(KGlobal::locale()->formatNumber(minimum + (maximum - minimum)*slidervalue / 256, decimals));
thePublic->setEditText(QLocale()->toString(minimum + (maximum - minimum)*slidervalue / 256.0, 'f', decimals));
qreal value = thePublic->currentText().toDouble();
emit thePublic->valueChanged(value, false);
......@@ -322,7 +322,7 @@ void KoSliderCombo::setValue(qreal value)
value = d->minimum;
if (value > d->maximum)
value = d->maximum;
setEditText(KGlobal::locale()->formatNumber(value, d->decimals));
setEditText(QLocale()->toString(value, 'f', d->decimals));
d->slider->blockSignals(true);
d->slider->setValue(int((value - d->minimum) * 256 / (d->maximum - d->minimum) + 0.5));
d->slider->blockSignals(false);
......
......@@ -29,7 +29,7 @@
</widget>
</item>
<item row="2" column="0" colspan="4">
<widget class="KLineEdit" name="clip_path">
<widget class="QLineEdit" name="clip_path">
<property name="readOnly">
<bool>true</bool>
</property>
......@@ -43,7 +43,7 @@
</widget>
</item>
<item row="4" column="0" colspan="4">
<widget class="KLineEdit" name="clip_description"/>
<widget class="QLineEdit" name="clip_description"/>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label_duration">
......@@ -375,7 +375,7 @@
</widget>
</item>
<item>
<widget class="KLineEdit" name="image_size">
<widget class="QLineEdit" name="image_size">
<property name="readOnly">
<bool>true</bool>
</property>
......@@ -917,7 +917,7 @@
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
......@@ -933,7 +933,7 @@
</customwidget>
<customwidget>
<class>KRestrictedLine</class>
<extends>KLineEdit</extends>
<extends>QLineEdit</extends>
<header>krestrictedline.h</header>
</customwidget>
</customwidgets>
......
......@@ -22,7 +22,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="KLineEdit" name="clip_name"/>
<widget class="QLineEdit" name="clip_name"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label">
......@@ -76,7 +76,7 @@
<header>kcolorcombo.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
......
......@@ -103,7 +103,7 @@
</widget>
</item>
<item row="4" column="1">
<widget class="KLineEdit" name="tResX">
<widget class="QLineEdit" name="tResX">
<property name="maxLength">
<number>5</number>
</property>
......@@ -117,7 +117,7 @@
</widget>
</item>
<item row="4" column="3">
<widget class="KLineEdit" name="tResY">
<widget class="QLineEdit" name="tResY">
<property name="maxLength">
<number>5</number>
</property>
......@@ -171,7 +171,7 @@
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
......
......@@ -149,7 +149,7 @@
</widget>
</item>
<item row="4" column="1" colspan="2">
<widget class="KLineEdit" name="kcfg_dvgrabfilename"/>
<widget class="QLineEdit" name="kcfg_dvgrabfilename"/>
</item>
<item row="5" column="0" colspan="2">
<widget class="QLabel" name="label_7">
......@@ -159,7 +159,7 @@
</widget>
</item>
<item row="6" column="0" colspan="3">
<widget class="KLineEdit" name="kcfg_dvgrabextra"/>
<widget class="QLineEdit" name="kcfg_dvgrabextra"/>
</item>
<item row="7" column="1">
<spacer name="verticalSpacer_2">
......@@ -254,7 +254,7 @@
</widget>
</item>
<item row="2" column="6" colspan="5">
<widget class="KLineEdit" name="kcfg_video4vdevice">
<widget class="QLineEdit" name="kcfg_video4vdevice">
<property name="text">
<string/>
</property>
......@@ -698,7 +698,7 @@
</widget>
</item>
<item row="6" column="1" colspan="8">
<widget class="KLineEdit" name="kcfg_decklink_filename"/>
<widget class="QLineEdit" name="kcfg_decklink_filename"/>
</item>
<item row="7" column="8">
<spacer name="verticalSpacer_4">
......@@ -766,7 +766,7 @@
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
......
......@@ -159,7 +159,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="KLineEdit" name="kcfg_defaultimageapp">
<widget class="QLineEdit" name="kcfg_defaultimageapp">
<property name="showClearButton" stdset="0">
<bool>true</bool>
</property>
......@@ -180,7 +180,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="KLineEdit" name="kcfg_defaultaudioapp">
<widget class="QLineEdit" name="kcfg_defaultaudioapp">
<property name="showClearButton" stdset="0">
<bool>true</bool>
</property>
......@@ -201,7 +201,7 @@
</widget>
</item>
<item row="2" column="1">
<widget class="KLineEdit" name="kcfg_defaultplayerapp">
<widget class="QLineEdit" name="kcfg_defaultplayerapp">
<property name="showClearButton" stdset="0">
<bool>true</bool>
</property>
......@@ -264,7 +264,7 @@
</widget>
<customwidgets>
<customwidget>
<class>KLineEdit</class>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
......
......@@ -57,7 +57,7 @@
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="1" colspan="5">
<widget class="KLineEdit" name="kcfg_shuttledevice">
<widget class="QLineEdit" name="kcfg_shuttledevice">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
......@@ -70,9 +70,6 @@
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="squeezedTextEnabled">
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="5">
......@@ -378,7 +375,7 @@
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
......
......@@ -200,13 +200,13 @@
</widget>
<customwidgets>
<customwidget>
<class>KLineEdit</class>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
<customwidget>
<class>KRestrictedLine</class>
<extends>KLineEdit</extends>
<extends>QLineEdit</extends>
<header>krestrictedline.h</header>
</customwidget>
</customwidgets>
......
......@@ -72,7 +72,7 @@
</widget>
</item>
<item row="0" column="1" colspan="2">
<widget class="KLineEdit" name="profile_name"/>
<widget class="QLineEdit" name="profile_name"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
......@@ -82,7 +82,7 @@
</widget>
</item>
<item row="1" column="1" colspan="2">
<widget class="KLineEdit" name="profile_description"/>
<widget class="QLineEdit" name="profile_description"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_3">
......@@ -92,7 +92,7 @@
</widget>
</item>
<item row="2" column="1">
<widget class="KLineEdit" name="profile_extension"/>
<widget class="QLineEdit" name="profile_extension"/>
</item>
<item row="2" column="2">
<widget class="QCheckBox" name="profile_audioonly">
......@@ -118,7 +118,7 @@
</widget>
<customwidgets>
<customwidget>
<class>KLineEdit</class>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
......
......@@ -57,7 +57,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="KLineEdit" name="play_text"/>
<widget class="QLineEdit" name="play_text"/>
</item>
<item row="0" column="2">
<widget class="QLabel" name="label_6">
......@@ -303,7 +303,7 @@
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
......
......@@ -108,13 +108,13 @@
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
<customwidget>
<class>KTreeWidgetSearchLine</class>
<extends>KLineEdit</extends>
<extends>QLineEdit</extends>
<header>ktreewidgetsearchline.h</header>
</customwidget>
</customwidgets>
......
......@@ -83,8 +83,8 @@
</widget>
</item>
<item row="0" column="0" colspan="2">
<widget class="KLineEdit" name="search_text">
<property name="clickMessage">
<widget class="QLineEdit" name="search_text">
<property name="placeholderText">
<string/>
</property>
<property name="showClearButton" stdset="0">
......@@ -212,7 +212,7 @@
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
......
......@@ -69,13 +69,13 @@
</widget>
<customwidgets>
<customwidget>
<class>KLineEdit</class>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
<customwidget>
<class>KRestrictedLine</class>
<extends>KLineEdit</extends>
<extends>QLineEdit</extends>
<header>krestrictedline.h</header>
</customwidget>
</customwidgets>
......
......@@ -28,7 +28,7 @@
</widget>
</item>
<item row="1" column="0">
<widget class="KLineEdit" name="lineeditwidget"/>
<widget class="QLineEdit" name="lineeditwidget"/>
</item>
<item row="2" column="0">
<widget class="KComboBox" name="comboboxwidget"/>
......@@ -42,7 +42,7 @@
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
......
......@@ -48,7 +48,7 @@
<layout class="QHBoxLayout" name="inputLayout"/>
</item>
<item row="1" column="2" colspan="2">
<widget class="KLineEdit" name="marker_comment"/>
<widget class="QLineEdit" name="marker_comment"/>
</item>
<item row="1" column="1">
<widget class="QLabel" name="clip_filesize_3">
......@@ -102,7 +102,7 @@
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
......
......@@ -51,7 +51,7 @@
</widget>
</item>
<item row="0" column="1" colspan="3">
<widget class="KLineEdit" name="description"/>
<widget class="QLineEdit" name="description"/>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="size_w">
......@@ -302,7 +302,7 @@
<header>kpushbutton.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
......
......@@ -596,7 +596,7 @@
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
......@@ -607,7 +607,7 @@
</customwidget>
<customwidget>
<class>KTreeWidgetSearchLine</class>
<extends>KLineEdit</extends>
<extends>QLineEdit</extends>
<header>ktreewidgetsearchline.h</header>
</customwidget>
<customwidget>
......
......@@ -28,7 +28,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="KLineEdit" name="vbitrates_list">
<widget class="QLineEdit" name="vbitrates_list">
<property name="toolTip">
<string>Best to worst quality</string>
</property>
......@@ -52,7 +52,7 @@
</widget>
</item>
<item row="2" column="1" colspan="2">
<widget class="KLineEdit" name="profile_name"/>
<widget class="QLineEdit" name="profile_name"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
......@@ -92,7 +92,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="KLineEdit" name="abitrates_list">
<widget class="QLineEdit" name="abitrates_list">
<property name="toolTip">
<string>Best to worst quality</string>
</property>
......@@ -113,7 +113,7 @@
</widget>
</item>
<item row="1" column="1" colspan="2">