diff --git a/aqt/__init__.py b/aqt/__init__.py
index 3db24c6ff..b1cfee56c 100644
--- a/aqt/__init__.py
+++ b/aqt/__init__.py
@@ -195,6 +195,10 @@ def run():
# we've signaled the primary instance, so we should close
return
+ # disable icons on mac; this must be done before window created
+ if isMac:
+ app.setAttribute(Qt.AA_DontShowIconsInMenus)
+
# we must have a usable temp dir
try:
tempfile.gettempdir()
diff --git a/aqt/browser.py b/aqt/browser.py
index f8bd41768..480d8328c 100644
--- a/aqt/browser.py
+++ b/aqt/browser.py
@@ -562,7 +562,7 @@ class Browser(QMainWindow):
"Update current note and hide/show editor."
update = self.updateTitle()
show = self.model.cards and update == 1
- self.form.splitter.widget(1).setShown(not not show)
+ self.form.splitter.widget(1).setVisible(not not show)
if not show:
self.editor.setNote(None)
else:
diff --git a/aqt/customstudy.py b/aqt/customstudy.py
index e3d675685..a71089c12 100644
--- a/aqt/customstudy.py
+++ b/aqt/customstudy.py
@@ -79,9 +79,9 @@ class CustomStudy(QDialog):
sval = 100
spShow = False
pre = post = ""
- sp.setShown(spShow)
+ sp.setVisible(spShow)
f.title.setText(tit)
- f.title.setShown(not not tit)
+ f.title.setVisible(not not tit)
f.spin.setMinimum(smin)
f.spin.setMaximum(smax)
f.spin.setValue(sval)
diff --git a/aqt/exporting.py b/aqt/exporting.py
index 55b361318..ab25a0221 100644
--- a/aqt/exporting.py
+++ b/aqt/exporting.py
@@ -35,9 +35,9 @@ class ExportDialog(QDialog):
self.exporter = exporters()[idx][1](self.col)
self.isApkg = hasattr(self.exporter, "includeSched")
self.hideTags = hasattr(self.exporter, "hideTags")
- self.frm.includeSched.setShown(self.isApkg)
- self.frm.includeMedia.setShown(self.isApkg)
- self.frm.includeTags.setShown(
+ self.frm.includeSched.setVisible(self.isApkg)
+ self.frm.includeMedia.setVisible(self.isApkg)
+ self.frm.includeTags.setVisible(
not self.isApkg and not self.hideTags)
def accept(self):
diff --git a/aqt/importing.py b/aqt/importing.py
index 0639215ec..056c92601 100644
--- a/aqt/importing.py
+++ b/aqt/importing.py
@@ -64,7 +64,7 @@ class ImportDialog(QDialog):
self.setupMappingFrame()
self.setupOptions()
self.modelChanged()
- self.frm.autoDetect.setShown(self.importer.needDelimiter)
+ self.frm.autoDetect.setVisible(self.importer.needDelimiter)
addHook("currentModelChanged", self.modelChanged)
self.connect(self.frm.autoDetect, SIGNAL("clicked()"),
self.onDelimiter)
diff --git a/aqt/main.py b/aqt/main.py
index 40b4c7add..2bfa777f9 100644
--- a/aqt/main.py
+++ b/aqt/main.py
@@ -134,8 +134,8 @@ class AnkiQt(QMainWindow):
name = self.pm.profiles()[n]
f = self.profileForm
passwd = not self.pm.load(name)
- f.passEdit.setShown(passwd)
- f.passLabel.setShown(passwd)
+ f.passEdit.setVisible(passwd)
+ f.passLabel.setVisible(passwd)
def openProfile(self):
name = self.pm.profiles()[self.profileForm.profiles.currentRow()]
@@ -1007,7 +1007,6 @@ will be lost. Continue?"""))
def setupSystemSpecific(self):
self.hideMenuAccels = False
if isMac:
- qt_mac_set_menubar_icons(False)
# mac users expect a minimize option
self.minimizeShortcut = QShortcut("Ctrl+M", self)
self.connect(self.minimizeShortcut, SIGNAL("activated()"),
diff --git a/aqt/preferences.py b/aqt/preferences.py
index 40cd44005..257779d9b 100644
--- a/aqt/preferences.py
+++ b/aqt/preferences.py
@@ -87,7 +87,7 @@ class Preferences(QDialog):
self.onSyncDeauth)
def _hideAuth(self):
- self.form.syncDeauth.setShown(False)
+ self.form.syncDeauth.setVisible(False)
self.form.syncLabel.setText(_("""\
Synchronization
Not currently enabled; click the sync button in the main window to enable."""))