summaryrefslogtreecommitdiff
path: root/Source/WebCore/platform/graphics/qt/IconQt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/qt/IconQt.cpp')
-rw-r--r--Source/WebCore/platform/graphics/qt/IconQt.cpp28
1 files changed, 7 insertions, 21 deletions
diff --git a/Source/WebCore/platform/graphics/qt/IconQt.cpp b/Source/WebCore/platform/graphics/qt/IconQt.cpp
index eb09eda6b..7d2613fbd 100644
--- a/Source/WebCore/platform/graphics/qt/IconQt.cpp
+++ b/Source/WebCore/platform/graphics/qt/IconQt.cpp
@@ -22,13 +22,10 @@
#include "Icon.h"
#include "GraphicsContext.h"
-#include "PlatformString.h"
#include "IntRect.h"
+#include "NotImplemented.h"
+#include "PlatformString.h"
-#include <qpainter.h>
-#include <qpixmap.h>
-#include <qrect.h>
-#include <qglobal.h>
namespace WebCore {
@@ -41,27 +38,16 @@ Icon::~Icon()
}
// FIXME: Move the code to ChromeClient::iconForFiles().
-PassRefPtr<Icon> Icon::createIconForFiles(const Vector<String>& filenames)
+PassRefPtr<Icon> Icon::createIconForFiles(const Vector<String>&)
{
- if (filenames.isEmpty())
- return 0;
-
- if (filenames.size() == 1) {
- RefPtr<Icon> i = adoptRef(new Icon);
- i->m_icon = QIcon(filenames[0]);
- return i.release();
- }
-
- //FIXME: Implement this
+ // FIXME: Should use QMimeType in Qt 5.
+ notImplemented();
return 0;
}
-void Icon::paint(GraphicsContext* ctx, const IntRect& rect)
+void Icon::paint(GraphicsContext*, const IntRect&)
{
- QPixmap px = m_icon.pixmap(rect.size());
- QPainter *p = static_cast<QPainter*>(ctx->platformContext());
- if (p && !px.isNull())
- p->drawPixmap(rect.x(), rect.y(), px);
+ notImplemented();
}
}