Skip to content

Commit

Permalink
Fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus committed Jun 23, 2021
1 parent ba33648 commit 4bde5e6
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 43 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,32 +100,6 @@ jobs:
name: qfieldsync.${{ github.event.inputs.ref }}.zip
path: ./qfieldsync.${{ github.event.inputs.ref }}.zip

package:
runs-on: ubuntu-20.04
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TX_TOKEN: ${{ secrets.TX_TOKEN }}
GITHUB_REF: ${{ github.ref }}
if: ${{ github.event_name == 'workflow_dispatch' }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
ref: ${{ github.event.inputs.ref }}
- name: Install dependencies
run: |
sudo apt update && sudo apt install qttools5-dev-tools qt5-default
sudo pip install qgis-plugin-ci
- name: Release
run: |
qgis-plugin-ci package ${{ github.event.inputs.ref }} --transifex-token ${TX_TOKEN}
- name: Upload release assets
uses: actions/upload-artifact@v2
with:
name: qfieldsync.${{ github.event.inputs.ref }}.zip
path: ./qfieldsync.${{ github.event.inputs.ref }}.zip

translations:
runs-on: ubuntu-20.04
env:
Expand Down
1 change: 0 additions & 1 deletion qfieldsync/core/layer.py

This file was deleted.

1 change: 0 additions & 1 deletion qfieldsync/core/offline_converter.py

This file was deleted.

1 change: 0 additions & 1 deletion qfieldsync/core/project.py

This file was deleted.

2 changes: 1 addition & 1 deletion qfieldsync/gui/map_layer_config_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
from qgis.gui import QgsMapLayerConfigWidget, QgsMapLayerConfigWidgetFactory
from qgis.PyQt.uic import loadUiType

from qfieldsync.core.layer import LayerSource
from qfieldsync.gui.photo_naming_widget import PhotoNamingTableWidget
from qfieldsync.gui.utils import set_available_actions
from qfieldsync.libqfieldsync.layer import LayerSource

WidgetUi, _ = loadUiType(
os.path.join(os.path.dirname(__file__), "../ui/map_layer_config_widget.ui")
Expand Down
5 changes: 5 additions & 0 deletions qfieldsync/gui/package_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ def show_settings(self):
self.update_info_visibility()

def update_total(self, current, layer_count, message):
if current == layer_count and (current == 100 or current == 0):
QApplication.restoreOverrideCursor()
elif current == 0 and layer_count == 100:
QApplication.setOverrideCursor(Qt.WaitCursor)

self.totalProgressBar.setMaximum(layer_count)
self.totalProgressBar.setValue(current)
self.statusLabel.setText(message)
Expand Down
2 changes: 0 additions & 2 deletions qfieldsync/gui/photo_naming_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ def __init__(self):
self.setRowCount(0)
self.resizeColumnsToContents()
self.setMinimumHeight(100)
self.setSizeAdjustPolicy(QAbstractScrollArea.AdjustToContents)
# self.setSizeAdjustPolicy(QAbstractScrollArea.AdjustToContents)

def addLayerFields(self, layer_source):
layer = layer_source.layer
Expand Down
3 changes: 0 additions & 3 deletions qfieldsync/gui/project_configuration_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ def __init__(self, parent=None):
)
self.singleLayerRadioButton.toggled.connect(self.baseMapTypeChanged)

self.photoNamingTable = PhotoNamingTableWidget()
self.photoNamingTab.layout().addWidget(self.photoNamingTable)

self.reloadProject()

def reloadProject(self):
Expand Down
1 change: 0 additions & 1 deletion qfieldsync/gui/synchronize_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from qgis.PyQt.QtWidgets import QDialog, QDialogButtonBox, QMessageBox
from qgis.PyQt.uic import loadUiType

from qfieldsync.core.project import ProjectConfiguration
from qfieldsync.core.preferences import Preferences
from qfieldsync.libqfieldsync import ProjectConfiguration
from qfieldsync.libqfieldsync.utils.exceptions import NoProjectFoundError
Expand Down
12 changes: 6 additions & 6 deletions qfieldsync/qfield_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,15 +442,15 @@ def update_qfield_sync_toolbar_icon(self):
QIcon(os.path.join(os.path.dirname(__file__), "./resources/cloud.svg"))
)
else:
self.qfield_cloud_sync_btn.setIcon(QIcon(os.path.join(os.path.dirname(__file__), './resources/cloud_off.svg')))
self.qfield_cloud_sync_btn.setIcon(
QIcon(
os.path.join(os.path.dirname(__file__), "./resources/cloud_off.svg")
)
)

def get_qfield_action(self) -> QAction:
actions = self.iface.pluginMenu().actions()
result_actions = [
action
for action in actions
if action.text() == self.menu
]
result_actions = [action for action in actions if action.text() == self.menu]

# OSX does not support & in the menu title
if not result_actions:
Expand Down
1 change: 0 additions & 1 deletion qfieldsync/utils/file_utils.py

This file was deleted.

0 comments on commit 4bde5e6

Please sign in to comment.