signal-bug fixed; refs #115
This commit is contained in:
@@ -148,10 +148,10 @@ class Browser: public QMainWindow, protected Ui::Browser {
|
|||||||
}
|
}
|
||||||
_editbookmarks =
|
_editbookmarks =
|
||||||
std::auto_ptr<EditBookmarks>(new EditBookmarks(combo, this));
|
std::auto_ptr<EditBookmarks>(new EditBookmarks(combo, this));
|
||||||
assert(connect(_editbookmarks.get(), SIGNAL(startEdit()),
|
assert(connect(_editbookmarks.get(), SIGNAL(startEdit(bool)),
|
||||||
actionAddBookmark, SLOT(setDisabled())));
|
actionAddBookmark, SLOT(setDisabled(bool))));
|
||||||
assert(connect(_editbookmarks.get(), SIGNAL(endEdit()),
|
assert(connect(_editbookmarks.get(), SIGNAL(endEdit(bool)),
|
||||||
actionAddBookmark, SLOT(setEnabled())));
|
actionAddBookmark, SLOT(setEnabled(bool))));
|
||||||
} else {
|
} else {
|
||||||
QLineEdit* label(new QLineEdit(_toolbar));
|
QLineEdit* label(new QLineEdit(_toolbar));
|
||||||
_url = label;
|
_url = label;
|
||||||
|
@@ -18,8 +18,8 @@
|
|||||||
class EditBookmarks: public QDialog, protected Ui::EditBookmarks {
|
class EditBookmarks: public QDialog, protected Ui::EditBookmarks {
|
||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void startEdit();
|
void startEdit(bool=true);
|
||||||
void endEdit();
|
void endEdit(bool=true);
|
||||||
public:
|
public:
|
||||||
EditBookmarks(QComboBox* url, QWidget* p=0): QDialog(p), _url(url) {
|
EditBookmarks(QComboBox* url, QWidget* p=0): QDialog(p), _url(url) {
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
Reference in New Issue
Block a user