forked from qt-creator/qt-creator
Rename resource file.
This commit is contained in:
|
Before Width: | Height: | Size: 767 B After Width: | Height: | Size: 767 B |
6
src/plugins/quickopen/locator.qrc
Normal file
6
src/plugins/quickopen/locator.qrc
Normal file
@@ -0,0 +1,6 @@
|
||||
<RCC>
|
||||
<qresource prefix="/locator">
|
||||
<file>images/reload.png</file>
|
||||
<file>images/locator.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
@@ -272,7 +272,7 @@ LocatorWidget::LocatorWidget(LocatorPlugin *qop) :
|
||||
layout->setMargin(0);
|
||||
layout->addWidget(m_fileLineEdit);
|
||||
|
||||
setWindowIcon(QIcon(":/quickopen/images/quickopen.png"));
|
||||
setWindowIcon(QIcon(":/locator/images/locator.png"));
|
||||
QPixmap image(Core::Constants::ICON_MAGNIFIER);
|
||||
m_fileLineEdit->setPixmap(image);
|
||||
m_fileLineEdit->setUseLayoutDirection(true);
|
||||
|
||||
@@ -28,6 +28,6 @@ SOURCES += locatorplugin.cpp \
|
||||
FORMS += settingspage.ui \
|
||||
filesystemfilter.ui \
|
||||
directoryfilter.ui
|
||||
RESOURCES += quickopen.qrc
|
||||
RESOURCES += locator.qrc
|
||||
|
||||
OTHER_FILES += QuickOpen.pluginspec
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
<RCC>
|
||||
<qresource prefix="/quickopen" >
|
||||
<file>images/quickopen.png</file>
|
||||
<file>images/reload.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
@@ -360,11 +360,11 @@ void TextEditorActionHandler::updateCopyAction()
|
||||
|
||||
void TextEditorActionHandler::gotoAction()
|
||||
{
|
||||
QuickOpen::LocatorManager *quickopen = QuickOpen::LocatorManager::instance();
|
||||
QTC_ASSERT(quickopen, return);
|
||||
QuickOpen::LocatorManager *locatorManager = QuickOpen::LocatorManager::instance();
|
||||
QTC_ASSERT(locatorManager, return);
|
||||
const QString shortcut = TextEditorPlugin::instance()->lineNumberFilter()->shortcutString();
|
||||
const QString text = tr(" <line number>");
|
||||
quickopen->show(shortcut + text, 2, text.length()-1);
|
||||
locatorManager->show(shortcut + text, 2, text.length()-1);
|
||||
}
|
||||
|
||||
void TextEditorActionHandler::printAction()
|
||||
|
||||
Reference in New Issue
Block a user