Browse files

Azoth EmbedMedia: fixed styling.

  • Loading branch information...
1 parent 90103be commit 76b8308728020fd4188b5222ae4df90837f0e94c @0xd34df00d 0xd34df00d committed Jun 19, 2011
Showing with 7 additions and 8 deletions.
  1. +7 −8 src/plugins/azoth/plugins/embedmedia/embedmedia.cpp
View
15 src/plugins/azoth/plugins/embedmedia/embedmedia.cpp
@@ -35,17 +35,17 @@ namespace EmbedMedia
{
void Plugin::Init (ICoreProxy_ptr)
{
- QFile embederJS (":/plugins/azoth/plugins/embedmedia/resources/scripts/embedder.js");
+ QFile embedderJS (":/plugins/azoth/plugins/embedmedia/resources/scripts/embedder.js");
- if (!embederJS.open (QIODevice::ReadOnly))
+ if (!embedderJS.open (QIODevice::ReadOnly))
{
qWarning () << Q_FUNC_INFO
<< "unable to open script file"
- << embederJS.errorString ();
+ << embedderJS.errorString ();
return;
}
- QTextStream content (&embederJS);
+ QTextStream content (&embedderJS);
content.setCodec (QTextCodec::codecForName ("UTF-8"));
ScriptContent_ = content.readAll ();
@@ -66,7 +66,7 @@ namespace EmbedMedia
QString Plugin::GetName () const
{
- return "Embed media";
+ return "Azoth Embed media";
}
QString Plugin::GetInfo () const
@@ -86,10 +86,9 @@ namespace EmbedMedia
return result;
}
- void Plugin::hookChatTabCreated (LeechCraft::IHookProxy_ptr proxy,
- QObject *chatTab, QObject *entry, QWebView *webView)
+ void Plugin::hookChatTabCreated (LeechCraft::IHookProxy_ptr,
+ QObject*, QObject*, QWebView *webView)
{
- qDebug () << Q_FUNC_INFO << "gonna evaluate script" << ScriptContent_.size ();
webView->page ()->mainFrame ()->evaluateJavaScript (ScriptContent_);
}
}

0 comments on commit 76b8308

Please sign in to comment.