Commit 8d5fa206 authored by Jan Möbius's avatar Jan Möbius

Updated internal types handling (directly initialized by core now)

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7698 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 7ff3e5f0
......@@ -382,7 +382,7 @@ void CoreWidget::updatePopupMenuBackground(QMenu* _menu , const QPoint& /*_point
void CoreWidget::updatePopupMenuObject(QMenu* _menu , BaseObjectData* _object ) {
QAction* typeEntry = new QAction( typeName(_object->dataType()) ,_menu);
typeEntry->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+ typeIcon(_object->dataType()) ));
typeEntry->setIcon(typeIcon(_object->dataType()));
_menu->addAction( typeEntry );
_menu->addSeparator( );
......
......@@ -858,16 +858,14 @@ CoreWidget::updateRecent()
QVector< OpenFlipper::Options::RecentFile > recentFiles = OpenFlipper::Options::recentFiles();
for (int i = 0 ; i < recentFiles.size() ; ++i ) {
QString path = OpenFlipper::Options::iconDirStr() + OpenFlipper::Options::dirSeparator();
QFileInfo fi(recentFiles[i].filename);
if (fi.suffix() == "ini")
path += "Settings-Icon.png";
recentFilesMenu_->addAction(QIcon(OpenFlipper::Options::iconDirStr() + OpenFlipper::Options::dirSeparator()+"Settings-Icon.png"), recentFiles[i].filename);
else
path += typeIcon( recentFiles[i].type );
recentFilesMenu_->addAction(typeIcon( recentFiles[i].type ), recentFiles[i].filename);
recentFilesMenu_->addAction(QIcon(path), recentFiles[i].filename);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment