mirror of https://gitee.com/cxasm/notepad--.git
commit
61abdf0c4c
|
@ -7387,7 +7387,7 @@ void CCNotePad::slot_gotoline()
|
|||
int lineCounts = 2147483647;
|
||||
|
||||
bool ok;
|
||||
int num = QInputDialog::getInt(this, tr("Go to line"), tr("Line Num:"), 1, 1, lineCounts, 1, &ok);
|
||||
int num = QInputDialog::getInt(this, tr("Go to line"), tr("Line Num:"), 1, 1, lineCounts, 1, &ok,Qt::WindowCloseButtonHint);
|
||||
if (ok)
|
||||
{
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ ColumnEdit::ColumnEdit(QWidget *parent)
|
|||
ui.setupUi(this);
|
||||
|
||||
connect(ui.addPrefix, &QCheckBox::stateChanged, this, &ColumnEdit::slot_addPrefix);
|
||||
connect(ui.is16, &QRadioButton::clicked, this, &ColumnEdit::slot_bigChar);
|
||||
connect(ui.is16, &QRadioButton::toggled, this, &ColumnEdit::slot_bigChar);
|
||||
}
|
||||
|
||||
ColumnEdit::~ColumnEdit()
|
||||
|
|
|
@ -247,7 +247,7 @@ void DocTypeListView::slot_customContextMenuRequested(const QPoint& /*pos*/)
|
|||
void DocTypeListView::slot_addCustomType()
|
||||
{
|
||||
bool ok = false;
|
||||
QString text = QInputDialog::getText(this, tr("input file ext()"), tr("ext (Split With :)"), QLineEdit::Normal, QString(".h:.cpp"), &ok);
|
||||
QString text = QInputDialog::getText(this, tr("input file ext()"), tr("ext (Split With :)"), QLineEdit::Normal, QString(".h:.cpp"), &ok,Qt::WindowCloseButtonHint);
|
||||
|
||||
if (ok && !text.isEmpty())
|
||||
{
|
||||
|
|
|
@ -109,7 +109,7 @@ void EncodeConvert::slot_itemClicked(QTreeWidgetItem* item, int /*column*/)
|
|||
void EncodeConvert::slot_userDefineExt()
|
||||
{
|
||||
bool ok = false;
|
||||
QString text = QInputDialog::getText(this, tr("input file ext()"),tr("ext (Split With :)"), QLineEdit::Normal, QString(".h:.cpp"), &ok);
|
||||
QString text = QInputDialog::getText(this, tr("input file ext()"),tr("ext (Split With :)"), QLineEdit::Normal, QString(".h:.cpp"), &ok,Qt::WindowCloseButtonHint);
|
||||
|
||||
if (ok && !text.isEmpty())
|
||||
{
|
||||
|
|
|
@ -102,7 +102,7 @@ void LangStyleDefine::loadUserLangs()
|
|||
|
||||
void LangStyleDefine::slot_new()
|
||||
{
|
||||
QString name = QInputDialog::getText(this, tr("Create New Languages"), tr("Please Input Languages Name"));
|
||||
QString name = QInputDialog::getText(this, tr("Create New Languages"), tr("Please Input Languages Name"),QLineEdit::Normal,QString(),nullptr,Qt::WindowCloseButtonHint);
|
||||
|
||||
if (!name.isEmpty())
|
||||
{
|
||||
|
|
|
@ -6,6 +6,9 @@ ProgressWin::ProgressWin(QWidget *parent)
|
|||
: QDialog(parent), m_curStep(0),m_isCancel(false)
|
||||
{
|
||||
ui.setupUi(this);
|
||||
Qt::WindowFlags flags = Qt::Dialog;
|
||||
flags |= Qt::WindowCloseButtonHint;
|
||||
setWindowFlags(flags);
|
||||
}
|
||||
|
||||
ProgressWin::~ProgressWin()
|
||||
|
|
|
@ -19,6 +19,8 @@ ReNameWin::ReNameWin(QWidget *parent)
|
|||
connect(ui.radioButtonDelSuffix, &QRadioButton::toggled, this, [this](bool status) {slot_renameOptionsChange(4, status); });
|
||||
connect(ui.radioButtonLower, &QRadioButton::toggled, this, [this](bool status) {slot_renameOptionsChange(5, status); });
|
||||
connect(ui.radioButtonUpper, &QRadioButton::toggled, this, [this](bool status) {slot_renameOptionsChange(6, status); });
|
||||
|
||||
ui.radioButtonAddPrefix->toggled(true);
|
||||
}
|
||||
|
||||
ReNameWin::~ReNameWin()
|
||||
|
@ -63,7 +65,7 @@ void ReNameWin::slot_renameOptionsChange(int id, bool status)
|
|||
void ReNameWin::slot_userDefineExt()
|
||||
{
|
||||
bool ok = false;
|
||||
QString text = QInputDialog::getText(this, tr("input file ext()"), tr("ext (Start With .)"), QLineEdit::Normal, QString(".cpp"), &ok);
|
||||
QString text = QInputDialog::getText(this, tr("input file ext()"), tr("ext (Start With .)"), QLineEdit::Normal, QString(".cpp"), &ok,Qt::WindowCloseButtonHint);
|
||||
|
||||
if (ok && !text.isEmpty())
|
||||
{
|
||||
|
|
|
@ -38,6 +38,12 @@
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="toolButtonBrowse">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Browse</string>
|
||||
</property>
|
||||
|
@ -54,12 +60,17 @@
|
|||
<attribute name="title">
|
||||
<string>AddDelNameString</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QRadioButton" name="radioButtonAddPrefix">
|
||||
<property name="text">
|
||||
<string>Add Prefix</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
|
@ -118,7 +129,7 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1" colspan="2">
|
||||
<item row="2" column="1">
|
||||
<widget class="QRadioButton" name="radioButtonUpper">
|
||||
<property name="text">
|
||||
<string>Upper FileName</string>
|
||||
|
@ -126,49 +137,60 @@
|
|||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>35</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="changeExt">
|
||||
<attribute name="title">
|
||||
<string>ChangeExt</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_7">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Modify Ext To</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="lineEditDestExt"/>
|
||||
</item>
|
||||
<item>
|
||||
<item row="0" column="2" colspan="2">
|
||||
<spacer name="horizontalSpacer_4">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<width>78</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_9">
|
||||
<item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Deal Ext Type</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QComboBox" name="comboBoxExt">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
|
@ -183,14 +205,14 @@
|
|||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<item row="1" column="2">
|
||||
<widget class="QToolButton" name="definedFilterExt">
|
||||
<property name="text">
|
||||
<string>defined</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<item row="1" column="3">
|
||||
<spacer name="horizontalSpacer_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
|
|
|
@ -7,6 +7,9 @@ ShortcutKeyEditWin::ShortcutKeyEditWin(QWidget *parent)
|
|||
{
|
||||
ui.setupUi(this);
|
||||
ui.keySequenceEdit->setFocus();
|
||||
Qt::WindowFlags flags = Qt::Dialog;
|
||||
flags |= Qt::WindowCloseButtonHint;
|
||||
setWindowFlags(flags);
|
||||
}
|
||||
|
||||
ShortcutKeyEditWin::~ShortcutKeyEditWin()
|
||||
|
|
Loading…
Reference in New Issue