Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 241248
Collapse All | Expand All

(-)gtk-kde4/src/form1.cpp~ (-5 / +13 lines)
Lines 51-58 Link Here
51
		}
51
		}
52
	}
52
	}
53
	varstr=QDir::homePath().append("/.themes");
53
	varstr=QDir::homePath().append("/.themes");
54
	hometh=varstr+"/qt4";
54
	hometh=varstr+"/Qt4";
55
	dirqt.setPath(hometh);
55
	dirqt.setPath(hometh);
56
57
	if ((dirqt.exists()==0) && (QDir("/usr/share/themes/Qt4").exists()))
58
	{
59
		QProcess * copy = new QProcess();
60
		copy->execute(QString("cp"), QStringList()<<"-R"<<"/usr/share/themes/Qt4"<<"~/.themes/");
61
		delete copy;
62
	}
63
56
	if(dirqt.exists())
64
	if(dirqt.exists())
57
	{
65
	{
58
		comboBox->insertItem(0,"Use current KDE style");
66
		comboBox->insertItem(0,"Use current KDE style");
Lines 76-82 Link Here
76
		for (i=1; i!=filesel.size(); i++) 
84
		for (i=1; i!=filesel.size(); i++) 
77
		{
85
		{
78
			filesel[i].remove("/gtk-2.0");
86
			filesel[i].remove("/gtk-2.0");
79
			if (filesel.at(i)!="qt4") comboBox->addItem(filesel.at(i));
87
			if (filesel.at(i)!="Qt4") comboBox->addItem(filesel.at(i));
80
		}
88
		}
81
	}
89
	}
82
	//icons finding
90
	//icons finding
Lines 198-204 Link Here
198
	menu->show();
206
	menu->show();
199
	//fix Oxy! ^
207
	//fix Oxy! ^
200
	
208
	
201
	QDir::setCurrent(QDir::homePath().append("/.themes/qt4/gtk-2.0/"));
209
	QDir::setCurrent(QDir::homePath().append("/.themes/Qt4/gtk-2.0/"));
202
	wpix=QPixmap(widge->size());
210
	wpix=QPixmap(widge->size());
203
	wpix.fill(Qt::transparent);
211
	wpix.fill(Qt::transparent);
204
	bpix=QPixmap(widge->size());
212
	bpix=QPixmap(widge->size());
Lines 422-429 Link Here
422
		out<<"include \"/usr/share/themes/"<<comboBox->currentText()<<"/gtk-2.0/gtkrc\""<<endl;
430
		out<<"include \"/usr/share/themes/"<<comboBox->currentText()<<"/gtk-2.0/gtkrc\""<<endl;
423
		out<<"include \""<<QDir::homePath()<<"/.themes/"<<comboBox->currentText()<<"/gtk-2.0/gtkrc\""<<endl;
431
		out<<"include \""<<QDir::homePath()<<"/.themes/"<<comboBox->currentText()<<"/gtk-2.0/gtkrc\""<<endl;
424
	}else{
432
	}else{
425
		out<<"include \"/usr/share/themes/qt4/gtk-2.0/gtkrc\""<<endl;
433
		out<<"include \"/usr/share/themes/Qt4/gtk-2.0/gtkrc\""<<endl;
426
		out<<"include \""<<QDir::homePath()<<"/.themes/qt4/gtk-2.0/gtkrc\""<<endl;
434
		out<<"include \""<<QDir::homePath()<<"/.themes/Qt4/gtk-2.0/gtkrc\""<<endl;
427
	}
435
	}
428
	out<<"style \"user-font\""<<endl;
436
	out<<"style \"user-font\""<<endl;
429
	out<<"{ "<<endl;
437
	out<<"{ "<<endl;

Return to bug 241248