Ticket #1944: lcdproc_V5_keyboard.patch

File lcdproc_V5_keyboard.patch, 1.6 KB (added by g8ecj@…, 14 years ago)

mythlcdserver patch

  • programs/mythlcdserver/lcdprocclient.cpp

     
    475475    }
    476476}
    477477
     478QString LCDProcClient::expandString(QString &aString)
     479{
     480        QString bString;
     481       
     482// if version 5 then white space seperate the list of characters
     483        for (uint x = 0; x < aString.length(); x++)
     484        {
     485            bString += aString.at(x);
     486            if (pVersion == LCD_VERSION_5)
     487                bString += " ";
     488        }
     489        return bString;
     490
     491}
     492
    478493void LCDProcClient::loadSettings()
    479494{
    480495    if (!lcd_ready)
     
    502517
    503518    if (old_keystring != "")
    504519    {
    505         aString = "client_del_key " + lcd_keystring;
     520        aString = "client_del_key " + expandString(old_keystring);
    506521        sendToServer(aString);
    507522    }
    508523   
    509     aString = "client_add_key " + lcd_keystring;
     524    aString = "client_add_key " + expandString(lcd_keystring);
    510525    sendToServer(aString);
    511526 
    512527    setHeartbeat ("Time", lcd_heartbeaton);
  • programs/mythlcdserver/lcdprocclient.h

     
    108108    void setPriority(const QString &screen, PRIORITY priority);
    109109
    110110    void setHeartbeat (const QString &screen, bool onoff);
     111    QString LCDProcClient::expandString(QString &aString);
    111112
    112113    void init();
    113114    void assignScrollingList(QStringList theList, QString theScreen,