mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Icons created from a file keep the file name of that file so it can be also used to display the file in HTML code
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
|
||||
#include <QStringBuilder>
|
||||
#include <QtGlobal>
|
||||
#include <QDir>
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
@@ -26,8 +27,12 @@ namespace BlackMisc
|
||||
{ }
|
||||
|
||||
CIcon::CIcon(const QString &resourceFilePath, const QString &descriptiveText) :
|
||||
m_index(CIcons::IconIsFile), m_descriptiveText(descriptiveText), m_pixmap(CIcons::pixmapByResourceFileName(resourceFilePath))
|
||||
{}
|
||||
m_index(CIcons::IconIsFile), m_descriptiveText(descriptiveText)
|
||||
{
|
||||
QString fullPath;
|
||||
m_pixmap = CIcons::pixmapByResourceFileName(QDir::cleanPath(resourceFilePath), fullPath);
|
||||
m_fileResourcePath = fullPath;
|
||||
}
|
||||
|
||||
CIcons::IconIndex CIcon::getIndex() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user