Switch to unified view

a/src/qtgui/snippets_w.cpp b/src/qtgui/snippets_w.cpp
...
...
62
void SnippetsW::init()
62
void SnippetsW::init()
63
{
63
{
64
    if (m_source.isNull())
64
    if (m_source.isNull())
65
    return;
65
    return;
66
66
67
    QPushButton *searchButton = new QPushButton(tr("Search"));
68
    searchButton->setAutoDefault(false);
69
    buttonBox->addButton(searchButton, QDialogButtonBox::ActionRole);
70
67
    searchFM->hide();
71
    searchFM->hide();
68
72
69
    new QShortcut(QKeySequence::Find, this, SLOT(slotEditFind()));
73
    new QShortcut(QKeySequence::Find, this, SLOT(slotEditFind()));
70
    new QShortcut(QKeySequence(Qt::Key_Slash), this, SLOT(slotEditFind()));
74
    new QShortcut(QKeySequence(Qt::Key_Slash), this, SLOT(slotEditFind()));
75
    new QShortcut(QKeySequence(Qt::Key_Escape), searchFM, SLOT(hide()));
71
    new QShortcut(QKeySequence::FindNext, this, SLOT(slotEditFindNext()));
76
    new QShortcut(QKeySequence::FindNext, this, SLOT(slotEditFindNext()));
77
    new QShortcut(QKeySequence(Qt::Key_F3), this, SLOT(slotEditFindNext()));
72
    new QShortcut(QKeySequence::FindPrevious, this, 
78
    new QShortcut(QKeySequence::FindPrevious, this, 
73
          SLOT(slotEditFindPrevious()));
79
          SLOT(slotEditFindPrevious()));
80
    new QShortcut(QKeySequence(Qt::SHIFT + Qt::Key_F3), 
81
        this, SLOT(slotEditFindPrevious()));
82
83
    QPushButton *closeButton = buttonBox->button(QDialogButtonBox::Close);
84
    if (closeButton)
85
  connect(closeButton, SIGNAL(clicked()), this, SLOT(close()));
86
    connect(searchButton, SIGNAL(clicked()), this, SLOT(slotEditFind()));
74
    connect(searchLE, SIGNAL(textChanged(const QString&)), 
87
    connect(searchLE, SIGNAL(textChanged(const QString&)), 
75
        this, SLOT(slotSearchTextChanged(const QString&)));
88
        this, SLOT(slotSearchTextChanged(const QString&)));
76
    connect(nextPB, SIGNAL(clicked()), this, SLOT(slotEditFindNext()));
89
    connect(nextPB, SIGNAL(clicked()), this, SLOT(slotEditFindNext()));
77
    new QShortcut(QKeySequence(Qt::Key_F3), this, SLOT(slotEditFindNext()));
78
    connect(prevPB, SIGNAL(clicked()), this, SLOT(slotEditFindPrevious()));
90
    connect(prevPB, SIGNAL(clicked()), this, SLOT(slotEditFindPrevious()));
79
91
80
#ifdef SNIPPETS_WEBKIT
92
#ifdef SNIPPETS_WEBKIT
81
    connect(browser, SIGNAL(linkClicked(const QUrl &)), 
93
    connect(browser, SIGNAL(linkClicked(const QUrl &)), 
82
        this, SLOT(linkWasClicked(const QUrl &)));
94
        this, SLOT(linkWasClicked(const QUrl &)));