mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
removed duplicated emoticons
This commit is contained in:
parent
45c60a17c0
commit
db5c115a91
|
@ -126,14 +126,11 @@ void GeneralForm::reloadSmiles()
|
||||||
{
|
{
|
||||||
QList<QStringList> emoticons = SmileyPack::getInstance().getEmoticons();
|
QList<QStringList> emoticons = SmileyPack::getInstance().getEmoticons();
|
||||||
QStringList smiles;
|
QStringList smiles;
|
||||||
smiles << ":)" << ";)" << ":p" << ":O" << ":'("; //just in case...
|
smiles << ":)" << ";)" << ":p" << ":O" << ":["; //just in case...
|
||||||
|
|
||||||
for(int i = 0; i < emoticons.size(); i++)
|
for(int i = 0; i < emoticons.size(); i++)
|
||||||
{
|
smiles.push_front(emoticons.at(i).first());
|
||||||
foreach (QString icon, emoticons.at(i))
|
|
||||||
smiles.push_front(icon);
|
|
||||||
}
|
|
||||||
|
|
||||||
int pixSize = 30;
|
int pixSize = 30;
|
||||||
bodyUI->smile1->setPixmap(SmileyPack::getInstance().getAsIcon(smiles[0]).pixmap(pixSize, pixSize));
|
bodyUI->smile1->setPixmap(SmileyPack::getInstance().getAsIcon(smiles[0]).pixmap(pixSize, pixSize));
|
||||||
bodyUI->smile2->setPixmap(SmileyPack::getInstance().getAsIcon(smiles[1]).pixmap(pixSize, pixSize));
|
bodyUI->smile2->setPixmap(SmileyPack::getInstance().getAsIcon(smiles[1]).pixmap(pixSize, pixSize));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user