Kolja Strohm 5 lat temu
rodzic
commit
c9fa9eda20
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      Linie/Initialisierung/Initialisierung.cpp

+ 4 - 4
Linie/Initialisierung/Initialisierung.cpp

@@ -19,7 +19,7 @@ Knopf *initKnopf( int x, int y, int br, int h
 KontrollKnopf *initKontrollKnopf( int x, int y, int br, int hö, Schrift *zSchrift, int style, char *txt )
 {
 	KontrollKnopf *ret = new KontrollKnopf();
-	ret->setStyle( style );
+	ret->addStyle( style );
 	if( zSchrift )
 		ret->setSchriftZ( zSchrift->getThis() );
 	if( txt )
@@ -48,7 +48,7 @@ KontrollKnopf *initKontrollKnopf( int x, int y, int br, int h
 Fenster *initFenster( int x, int y, int br, int hö, Schrift *zSchrift, int style, char *titel )
 {
 	Fenster *ret = new Fenster();
-	ret->setStyle( style );
+	ret->addStyle( style );
 	ret->setPosition( x, y );
 	ret->setSize( br, hö );
 	if( ret->hatStyle( Fenster::Style::Rahmen ) )
@@ -120,7 +120,7 @@ BildZ *initBildZ( int x, int y, int br, int h
 AuswahlBox *initAuswahlBox( int x, int y, int br, int hö, Schrift *zSchrift, int style, std::initializer_list< char * > values )
 {
 	AuswahlBox *ret = new AuswahlBox();
-	ret->setStyle( style );
+	ret->addStyle( style );
 	ret->setPosition( x, y );
 	ret->setSize( br, hö );
 	if( ( style | AuswahlBox::Style::Hintergrund ) == style )
@@ -166,7 +166,7 @@ AuswahlBox *initAuswahlBox( int x, int y, int br, int h
 ObjTabelle *initObjTabelle( int x, int y, int br, int hö, Schrift *zSchrift, int style, std::initializer_list< OBJTabelleSpalteIni > spalten, int überschriftHöhe )
 {
 	ObjTabelle *ret = new ObjTabelle();
-	ret->setStyle( style );
+	ret->addStyle( style );
 	ret->setPosition( x, y );
 	ret->setSize( br, hö );
 	if( ( style | ObjTabelle::Style::Erlaubt ) == style )