mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Improve some code and gui
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5643 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "ui_elementinfopartwidget.h"
|
||||
#include "searchandreplaceworker.h"
|
||||
|
||||
typedef SearchAndReplaceWorker sarw;
|
||||
|
||||
/**
|
||||
* @brief ElementInfoPartWidget::ElementInfoPartWidget
|
||||
@@ -58,8 +59,8 @@ ElementInfoPartWidget::~ElementInfoPartWidget()
|
||||
*/
|
||||
void ElementInfoPartWidget::setText(const QString &txt)
|
||||
{
|
||||
if (txt == SearchAndReplaceWorker::eraseText()) {
|
||||
ui->m_erase_text->setChecked(true);
|
||||
if (m_show_erase) {
|
||||
sarw::setupLineEdit(ui->line_edit, ui->m_erase_text, txt);
|
||||
} else {
|
||||
ui->line_edit->setText(txt);
|
||||
}
|
||||
@@ -113,6 +114,7 @@ void ElementInfoPartWidget::setDisabled(bool d) {
|
||||
*/
|
||||
void ElementInfoPartWidget::setEraseTextVisible(bool visible) {
|
||||
ui->m_erase_text->setVisible(visible);
|
||||
m_show_erase = visible;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user