diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2010-03-11 09:42:07 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2010-03-11 09:42:07 +0000 |
commit | 08acf5c407242344b0047b8040900f52df620dde (patch) | |
tree | 49936ec28d8b2a4256959f13245d757df97e04bd /x11/kde4-baseapps/files/patch-apps__kinfocenter__base__info_fbsd.cpp | |
parent | Upgrade to version 2.4.0. (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_7_3_0'.release/7.3.0
Diffstat (limited to 'x11/kde4-baseapps/files/patch-apps__kinfocenter__base__info_fbsd.cpp')
-rw-r--r-- | x11/kde4-baseapps/files/patch-apps__kinfocenter__base__info_fbsd.cpp | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/x11/kde4-baseapps/files/patch-apps__kinfocenter__base__info_fbsd.cpp b/x11/kde4-baseapps/files/patch-apps__kinfocenter__base__info_fbsd.cpp deleted file mode 100644 index 026806449c4e..000000000000 --- a/x11/kde4-baseapps/files/patch-apps__kinfocenter__base__info_fbsd.cpp +++ /dev/null @@ -1,57 +0,0 @@ ---- ./apps/kinfocenter/base/info_fbsd.cpp.orig 2009-04-15 14:25:24.000000000 +0400 -+++ ./apps/kinfocenter/base/info_fbsd.cpp 2009-09-22 21:33:38.000000000 +0400 -@@ -211,28 +211,17 @@ - FILE *pipe; - QFile *pcicontrol; - QString s, cmd; -+ QTextStream *t; - QTreeWidgetItem *olditem= NULL; - - pcicontrol = new QFile("/usr/sbin/pciconf"); - - if (!pcicontrol->exists()) { -+ QStringList list; -+ list << i18n("Could not find any programs with which to query your system's PCI information"); -+ new QTreeWidgetItem(tree, list); - delete pcicontrol; -- pcicontrol = new QFile("/usr/X11R6/bin/scanpci"); -- if (!pcicontrol->exists()) { -- delete pcicontrol; -- pcicontrol = new QFile("/usr/X11R6/bin/pcitweak"); -- if (!pcicontrol->exists()) { -- QStringList list; -- list << i18n("Could not find any programs with which to query your system's PCI information"); -- new QTreeWidgetItem(tree, list); -- delete pcicontrol; -- return true; -- } else { -- cmd = "/usr/X11R6/bin/pcitweak -l 2>&1"; -- } -- } else { -- cmd = "/usr/X11R6/bin/scanpci"; -- } -+ return true; - } else { - cmd = "/usr/sbin/pciconf -l -v 2>&1"; - } -@@ -247,8 +236,19 @@ - /* This prints out a list of all the pci devies, perhaps eventually we could - parse it as opposed to schlepping it into a listbox */ - -+ t = new QTextStream(pipe, QIODevice::ReadOnly); -+ -+ while (true) { -+ s = t->readLine(); -+ if (s.isEmpty() ) -+ break; -+ QStringList list; -+ list << s; -+ new QTreeWidgetItem(tree, list); -+ } -+ -+ delete t; - pclose(pipe); -- GetInfo_ReadfromPipe(tree, cmd.toLatin1(), true); - } - - if (!tree->topLevelItemCount()) { |