Skip to content

Commit

Permalink
manual fix for the icon
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 7, 2020
1 parent 087eeef commit b54ecab
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 252 deletions.
241 changes: 0 additions & 241 deletions qfieldsync/Makefile

This file was deleted.

1 change: 0 additions & 1 deletion qfieldsync/gui/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from .. import resources_rc
3 changes: 2 additions & 1 deletion qfieldsync/gui/project_configuration_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import os

from qgis.PyQt.QtCore import Qt
from qgis.PyQt.QtGui import QIcon
from qgis.PyQt.QtWidgets import QDialog, QTableWidgetItem, QToolButton, QComboBox, QMenu, QAction
from qgis.PyQt.uic import loadUiType

Expand All @@ -30,7 +31,6 @@
from qfieldsync.core.layer import LayerSource, SyncAction
from qfieldsync.core.project import ProjectProperties

from .. import resources_rc as resources_rc

DialogUi, _ = loadUiType(
os.path.join(os.path.dirname(__file__), '../ui/project_configuration_dialog.ui'),
Expand All @@ -53,6 +53,7 @@ def __init__(self, iface, parent=None):
self.__project_configuration = ProjectConfiguration(self.project)

self.setupUi(self)
self.multipleToggleButton.setIcon(QIcon(os.path.join(os.path.dirname(__file__), '../resources/visibility.svg')))

self.toggle_menu = QMenu(self)
self.remove_all_action = QAction(self.tr("remove all layers"), self.toggle_menu)
Expand Down
1 change: 0 additions & 1 deletion qfieldsync/gui/resources_rc.py

This file was deleted.

10 changes: 4 additions & 6 deletions qfieldsync/qfield_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
from qfieldsync.gui.synchronize_dialog import SynchronizeDialog
from qfieldsync.gui.project_configuration_dialog import ProjectConfigurationDialog

import qfieldsync.resources_rc # pylint: disable=unused-import # NOQA


class QFieldSync(object):
"""QGIS Plugin Implementation."""
Expand Down Expand Up @@ -183,27 +181,27 @@ def initGui(self):
"""Create the menu entries and toolbar icons inside the QGIS GUI."""

self.push_action = self.add_action(
':/plugins/qfieldsync/refresh.png',
os.path.join(os.path.dirname(__file__), 'resources/refresh.png'),
text=self.tr(u'Package for QField'),
callback=self.show_package_dialog,
parent=self.iface.mainWindow())

self.add_action(
':/plugins/qfieldsync/refresh-reverse.png',
os.path.join(os.path.dirname(__file__), 'resources/refresh-reverse.png'),
text=self.tr(u'Synchronize from QField'),
callback=self.show_synchronize_dialog,
parent=self.iface.mainWindow())

self.add_action(
':/plugins/qfieldsync/icon.png',
'./resources/icon.png',
text=self.tr(u'Project Configuration'),
callback=self.show_project_configuration_dialog,
parent=self.iface.mainWindow(),
add_to_toolbar=False
)

self.add_action(
':/plugins/qfieldsync/icon.png',
'./resources/icon.png',
text=self.tr(u'Preferences'),
callback=self.show_preferences_dialog,
parent=self.iface.mainWindow(),
Expand Down
File renamed without changes
File renamed without changes
1 change: 1 addition & 0 deletions qfieldsync/tests/test_project_configuration_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

start_app()


class ProjectConfigurationDialogTest(unittest.TestCase):

@classmethod
Expand Down
5 changes: 3 additions & 2 deletions qfieldsync/ui/project_configuration_dialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>543</width>
<height>510</height>
<width>525</width>
<height>579</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -298,6 +298,7 @@
<header>qgsmaplayercombobox.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
Expand Down

0 comments on commit b54ecab

Please sign in to comment.