Skip to content

Commit

Permalink
remove leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
luelista committed May 2, 2022
1 parent 18d90e0 commit a688585
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 53 deletions.
42 changes: 0 additions & 42 deletions examples/python/simple.py

This file was deleted.

7 changes: 2 additions & 5 deletions project.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@

import os

from pyqtbuild import PyQtBindings, PyQtProject
from sipbuild import Option

log=open("/tmp/project.log","w")
print("project py running")

class PyQtAds(PyQtProject):
def __init__(self):
""" Initialise the project. """
Expand All @@ -19,12 +15,13 @@ class ads(PyQtBindings):
def __init__(self, project):
""" Initialise the bindings. """

super().__init__(project, 'ads') #, qmake_CONFIG=qmake_CONFIG)
super().__init__(project, 'ads')

def apply_user_defaults(self, tool):
""" Set default values for user options that haven't been set yet. """

resource_file = os.path.join(self.project.root_dir,'src','ads.qrc')
print("Adding resource file to qmake project: ", resource_file)
self.builder_settings.append('RESOURCES += '+resource_file)

super().apply_user_defaults(tool)
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ description-file = "README.md"
requires-dist = "PyQt5 (>=5.15.4)"
description-content-type = "text/markdown"


[tool.sip.project]
#sip-files-dir = "sip"
tag-prefix = "QtAds"

[tool.sip.bindings.ads]
Expand Down
4 changes: 0 additions & 4 deletions src/DockManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,10 +858,6 @@ CDockAreaWidget* CDockManager::addDockWidgetTab(DockWidgetArea area,
{
return addDockWidget(ads::CenterDockWidgetArea, Dockwidget, AreaWidget);
}
/*else if (!openedDockAreas().isEmpty())
{
return addDockWidget(area, Dockwidget, openedDockAreas().last());
}*/
else
{
return addDockWidget(area, Dockwidget, nullptr);
Expand Down

0 comments on commit a688585

Please sign in to comment.