~lubuntu-dev/juffed/trunk

« back to all changes in this revision

Viewing changes to plugins/findinfiles/FindInFilesPlugin.cpp

  • Committer: Mezomish
  • Date: 2014-07-22 00:05:57 UTC
  • mfrom: (1054.1.3)
  • Revision ID: git-v1:5902d3e8b6037d54decec7dec15be6bb2b4f1eed
Merge pull request #66 from volkov0aa/fix-translations

Make more strings translatable and load Qt's translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
                searchAct_->setIcon(parent->api()->iconManager()->icon("main:find"));
33
33
 
34
34
                //      create toolbar
35
 
                toolBar_ = new QToolBar("Find In Files");
 
35
                toolBar_ = new QToolBar(tr("Find In Files"));
36
36
                toolBar_->setObjectName("FindInFilesToolBar");
37
37
                toolBar_->addWidget(new QLabel(tr("Find: ")));
38
38
                toolBar_->addWidget(ed_);
42
42
                //      create widget that will be embedded into dock 
43
43
                //      and put controls to it
44
44
                widget_ = new QWidget();
45
 
                widget_->setWindowTitle("Search results");
 
45
                widget_->setWindowTitle(tr("Search results"));
46
46
                tree_ = new QTreeWidget();
47
47
                QVBoxLayout* vBox = new QVBoxLayout();
48
48
 
51
51
                widget_->setLayout(vBox);
52
52
 
53
53
                QStringList labels;
54
 
                labels << "File" << "Line" << "Text" << "Column";
 
54
                labels << tr("File") << tr("Line") << tr("Text") << tr("Column");
55
55
                tree_->setHeaderLabels(labels);
56
56
                tree_->setRootIsDecorated(false);
57
57
#if QT_VERSION < 0x050000
106
106
        return "Find In Files";
107
107
}
108
108
 
 
109
QString FindInFilesPlugin::title() const {
 
110
        return tr("Find In Files");
 
111
}
 
112
 
109
113
QString FindInFilesPlugin::targetEngine() const {
110
114
        return "all";
111
115
}