mirror of
https://github.com/fwbuilder/fwbuilder
synced 2024-12-03 22:19:55 +01:00
fix: Remove unused code
This commit is contained in:
parent
61993d3a55
commit
184f866bf0
@ -80,34 +80,6 @@
|
||||
using namespace std;
|
||||
using namespace libfwbuilder;
|
||||
|
||||
|
||||
QAction* addPopupMenuItem(QObject *res,
|
||||
QMenu* menu,
|
||||
const QString &resourceIconPath,
|
||||
const QString itemName,
|
||||
const char* member,
|
||||
const QKeySequence &accel)
|
||||
{
|
||||
string icn;
|
||||
QPixmap pm;
|
||||
//int itmID = -1;
|
||||
QAction *act = nullptr;
|
||||
|
||||
icn = Resources::global_res->getResourceStr(static_cast<const char*>(resourceIconPath.toLatin1()));
|
||||
if(icn!="")
|
||||
{
|
||||
// pm = QPixmap::fromMimeSource( icn.c_str() );
|
||||
if ( ! QPixmapCache::find( icn.c_str(), &pm) )
|
||||
{
|
||||
pm.load( (":/"+icn).c_str() );//fromMimeSource( icn.c_str() );
|
||||
QPixmapCache::insert( icn.c_str(), pm);
|
||||
}
|
||||
act = menu->addAction( pm, itemName , res , member, accel ); //insertItem
|
||||
} else
|
||||
act = menu->addAction( itemName , res , member, accel); //insertItem
|
||||
return act;
|
||||
}
|
||||
|
||||
void fillLibraries(QComboBox *libs, libfwbuilder::FWObject *obj, bool rw)
|
||||
{
|
||||
bool standardObj = false;
|
||||
|
@ -69,15 +69,6 @@ class findSecondInQStringPair {
|
||||
{ return (str == _d.second); }
|
||||
};
|
||||
|
||||
|
||||
|
||||
extern QAction* addPopupMenuItem(QObject *res,
|
||||
QMenu* menu, //it was a Q3PopupMenu object
|
||||
const QString &resourceIconPath,
|
||||
const QString itemName,
|
||||
const char* member,
|
||||
const QKeySequence &accel = 0);
|
||||
|
||||
extern void fillLibraries(QComboBox *libs, libfwbuilder::FWObject *obj,
|
||||
bool rw=false);
|
||||
extern void fillLibraries(QListWidget *libs, libfwbuilder::FWObject *obj,
|
||||
|
Loading…
Reference in New Issue
Block a user