Exemple #1
0
    def changesize(self):
        changesize(self)
        scale = self.main_window.height() / self.main_window.default_height

        self.setStyleSheet("""
		QCheckBox {
			font-weight: bold;
			color: white;
			background-color: transparent;
		}
		QCheckBox::indicator {
		    width: %fpx;
		    height: %fpx;
		}
		QCheckBox::indicator:unchecked {
		    border-image: url(%s);
		}
		QCheckBox::indicator:checked {
		    border-image: url(%s);
		}
					""" % (self.box_width * scale, self.box_height * scale, self.img_uncheck,
            self.img_check))

        self.curfont.setPointSize(self.default_fontsize * scale)
        self.setFont(self.curfont)
Exemple #2
0
    def changesize(self):
        changesize(self)

        if self.shadow is not None:
            scale = self.main_window.height() / self.main_window.default_height
            width = self.default_shadowwidth * scale
            height = self.default_shadowheight * scale
            self.shadow.setIconSize(QtCore.QSize(width, height))
            x, y = get_shadowpos(self, width, height)
            self.shadow.setGeometry(x, y, width, height)
Exemple #3
0
 def changesize(self):
     changesize(self)
     self.view().setIconSize(QtCore.QSize(
         0, 0))  # for linux machines otherwise texts got hidden