def defineCatalog(): """whatever this does""" if not Tileset.catalogDefined: KGlobal.dirs().addResourceType("kmahjonggtileset", "data", QString.fromLatin1("kmahjongglib/tilesets")) KGlobal.locale().insertCatalog("libkmahjongglib") Tileset.catalogDefined = True
def defineCatalog(): """whatever this does""" if not Background.catalogDefined: KGlobal.dirs().addResourceType("kmahjonggbackground", "data", QString.fromLatin1("kmahjongglib/backgrounds")) KGlobal.locale().insertCatalog("libkmahjongglib") Background.catalogDefined = True
def defineCatalog(): """whatever this does""" if not Background.catalogDefined: KGlobal.dirs().addResourceType( "kmahjonggbackground", "data", QString.fromLatin1("kmahjongglib/backgrounds")) KGlobal.locale().insertCatalog("libkmahjongglib") Background.catalogDefined = True
EventData(receiver, event) return QObject.eventFilter(self, receiver, event) from util import gitHead ABOUT = About() KCmdLineArgs.init(sys.argv, ABOUT.about) KCmdLineArgs.addCmdLineOptions(defineOptions()) if usingQt4: KApplication.setGraphicsSystem("raster") APP = KApplication() parseOptions() if Debug.neutral: KGlobal.locale().setLanguage("en_US") if Debug.events: EVHANDLER = EvHandler() APP.installEventFilter(EVHANDLER) from config import SetupPreferences SetupPreferences() if Options.csv: if gitHead() == "current": Internal.logger.debug("You cannot write to %s with changes uncommitted to git", Options.csv) sys.exit(2) from mainwindow import MainWindow