Update trycode-rule.

* scm/trycode.scm
  - (trycode-rule): Update: add 4 kanji.
Comment out reserved key sequences for commands in trycode-rule.

* scm/trycode.scm
  - (trycode-rule): Comment out reserved key sequences for commands
    to simplify help and for performance of bushu conversion.
Use setSectionResizeMode() in Qt5.

* qt4/candwin/candidatewindow.cpp
  - (CandidateWindow::CandidateWindow):
    Replace setResizeMode() with setSectionResizeMode()
* qt4/candwin/ximcandidatewindow.cpp
  - (XimCandidateWindow::XimCandidateWindow): Ditto.
* qt4/chardict/chargridview.cpp
  - (CharGridView::CharGridView, CharGridView::setCharacters): Ditto.
* qt4/pref/customwidgets.cpp
  - (TableEditForm::TableEditForm): Ditto.
Replace toAscii() with toLatin1().

* qt4/candwin/ximcandidatewindow.cpp
  - (XimCandidateWindow::activateCand,
     XimCandidateWindow::setPageCandidates):
    Replace QString::toAscii() with QString::toLatin1()
    because Qt5 doesn't have QString::toAscii().
    QString::toAscii() does the same as QString::toLatin1()
    because we don't call QTextCodec::setCodecForCStrings().
* qt4/chardict/unicodeviewwidget.cpp
  - (UnicodeViewWidget::setupWidgets): Ditto.
* qt4/pref/customwidgets.cpp
  - (CustomKeyEdit::slotKeyButtonClicked): Ditto.
* qt4/pref/qt4.cpp
  - (GroupPageWidget::setupWidgets): Ditto.
* qt4/switcher/qt4.cpp
  - (UimImSwitcher::slotStdinActivated): Ditto.
* qt4/toolbar/common-uimstateindicator.cpp
  - (UimStateIndicator::slotStdinActivated,
     QHelperPopupMenu::slotMenuActivated): Ditto.
Apply cosmetic changes in qtextutil.cpp.

* qt4/immodule/qtextutil.cpp
  - Apply cosmetic changes in including.
Define createCandidateWindow().

* qt5/immodule/quimplatforminputcontext.cpp
  - (QUimPlatformInputContext::createCandidateWindow):
    Define a new function.
* qt5/immodule/quimplatforminputcontext.h
  - (QUimPlatformInputContext::createCandidateWindow):
    Declare a new function.
Use createCandidateWindow().

* qt5/immodule/quimplatforminputcontext.cpp
  - (QUimPlatformInputContext::QUimPlatformInputContext):
    Use QUimPlatformInputContext::createCandidateWindow().
Define saveContext().

* qt5/immodule/quimplatforminputcontext.cpp
  - (QUimPlatformInputContext::saveContext):
    Define this new function.
Define restoreContext().

* qt5/immodule/quimplatforminputcontext.cpp
  - (QUimPlatformInputContext::restoreContext):
    Define this new function.
Define getPreeditCursorPosition().

* qt5/immodule/quimplatforminputcontext.cpp
  - (QUimPlatformInputContext::getPreeditCursorPosition):
    Define this new function.
Define switch_app_global_im().

* qt5/immodule/quimplatforminputcontext.cpp
  - (QUimPlatformInputContext::switch_app_global_im):
    Define this new function.
Define switch_system_global_im().

* qt5/immodule/quimplatforminputcontext.cpp
  - (QUimPlatformInputContext::switch_system_global_im):
    Define this new function.
Define updateStyle().

* qt5/immodule/quimplatforminputcontext.cpp
  - (QUimPlatformInputContext::updateStyle):
    Define this new function.
Replace slotInputItemChanged().

* qt5/immodule/quimplatforminputcontext.cpp
  - (QUimPlatformInputContext::QUimPlatformInputContext):
    Remove a connection.
  - (QUimPlatformInputContext::slotInputItemChanged):
    Replace with QUimPlatformInputContext::setFocusObject()
    because QInputMethod::inputeItem() doesn't exist in Qt5 beta2.
* qt5/immodule/quimplatforminputcontext.h
  - (QUimPlatformInputContext::slotInputItemChanged):
    Remove this function.
  - (QUimPlatformInputContext::setFocusObject):
    Declare this new function.
Replace toAscii() with toLatin1().

* qt4/immodule/qhelpermanager.cpp
  - (QUimHelperManager::parseHelperStr):
    Replace QString::toAscii() with QString::toLatin1()
    because QString::toAscii() doesn't exist in Qt5 beta2.
* qt5/immodule/quimplatforminputcontext.cpp
  - (QUimPlatformInputContext::filterEvent): Ditto.
Replace fromAscii() with fromLatin1().

* qt5/immodule/quimplatforminputcontext.cpp
  - (getUserDefinedColor):
    Replace QString::fromAscii() with QString::fromLatin1()
    because QString::fromAscii() doesn't exist in Qt5 beta2.
Change paths of header files.

* qt4/immodule/plugin.cpp
* qt4/immodule/plugin.h
* qt5/immodule/quimplatforminputcontext.h
  - Change paths of header files.
Undefine CursorShape for Qt5.

* qt4/immodule/plugin.cpp
  - Undefine CursorShape for Qt5 to make the codes compilable.
Use qApp->focusObject().

* qt5/immodule/quimplatforminputcontext.cpp
  - (QUimPlatformInputContext::commitString,
     QUimPlatformInputContext::updatePreedit):
    Replace qApp->inputMethod()->inputItem() with qApp->focusObject()
    because QInputMethod::inputItem() doesn't exist in Qt5 beta2.
Update quimplatforminputcontextplugin.pro.in.

* qt5/immodule/.qmake.conf
  - Add this new file. qmake requires this file.
* qt5/immodule/quimplatforminputcontextplugin.pro.in
  - (PLUGIN_TYPE): Define this variable.
  - (QT): Replace platformsupport-private with gui-private.